X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2Fblog-0002.html-inc;h=bb24c576ae01fe29406cc5888c536079d122cc51;hb=e785862422f3e827a242fc244bd57b23443887ce;hp=bc1ede2a2121a8f61406c42ed94777a82e4b5b94;hpb=638b5b9759c7dcb4de4c0a88c766e9f9dd650348;p=sdlgit%2FSDL-Site.git diff --git a/pages/blog-0002.html-inc b/pages/blog-0002.html-inc index bc1ede2..bb24c57 100644 --- a/pages/blog-0002.html-inc +++ b/pages/blog-0002.html-inc @@ -1,6 +1,70 @@

-Migrating Sol's Tutorial of SDL to SDL_Perl +The SDL Perl Game Contest!

-
If I have seen further it is only by standing on the shoulders of giants. --Newton



Sol's Tutorials


When I was struggling with SDL C a while ago, someone recommended Sol's Tutorial to me. It had not only help me understand video in SDL, but I believe my code has improved using Sol's code style. I would like to pass these along to fellow SDL_Perl users too. So here is the Ch 02 code of Sol's Tutorial in SDL_Perl. It will be getting more and more Perly as our team hacks on it. There is more to come!


To use this code you need the new Redesigned SDL_Perl Library


Getting SDL Dependencies


Only If you are on Linux (debian/ubuntu) you need the following dependencies:

$ sudo apt-get install libsdl-net1.2-dev libsdl-mixer1.2-dev libsmpeg-dev libsdl1.2-dev libsdl-image1.2-dev libsdl-ttf2.0-dev 

On Windows we recommend using Strawberry Perl. It comes with SDL-1.2.13 header files and libs included.

Both Windows and Linux needs to install Alien::SDL

$ cpan Alien::SDL
** Add sudo to this for Linux

Getting Bleeding SDL


The bleeding SDL is on github. Click download on this site .

Extract it and cd into the folder run
$ cpan . 
** The dot is needed
** in Linux you may need to do sudo

Then you can run this script by doing

$ perl examples/sols/ch02.pl 
\ No newline at end of file +

Let's get a Party Started


+Sure, you know what SDL is, right? Well, SDL has very nice Perl
+bindings
that let you use the power and flexibility of Perl to write
+awesome games in no time!
+
+There's even a manual to help you get started, including full game
+tutorials and a list of free/open-source resources for your games,
+like sprites, sound effects and music.
+
+

The Premise


+Everyone know that by far the Coolest Game Ever™ is the one *you*
+write, from that silly idea you had the other day to a playable game
+you and your friends can enjoy.
+
+This march, the SDL Perl team is going to help you take that project
+out of your dusty drawer of "TODO"s and turn it into a reality, with
+the "SDL Perl Game Contest!"
+
+The rules are simple, and much like the Perl Ironman contest:
+
+"One game per week. Every week of march."
+
+This means by the end of march you'll have not one, but FOUR games to
+show for. How cool is that?!
+
+In fact, you can even make your weekly game the subject of your
+Ironman posts this month, and take out two birds with one stone
+(hmm... more game ideas)!
+
+So this monday (feb. 28), start writing your game! You have until the
+following monday to make it playable ("complete") and start all over
+again with a brand new game for the next week.
+
+** But what if I miss a deadline? What if I can't start this monday?
+
+It doesn't really matter - just join the party and have some fun! Even
+if you only get to do one game, it's still a great opportunity to
+improve your skills and learn a bit about game design and development.
+
+If you need any assistance writing your game, from ideas to code, WE
+WILL HELP! Just send an email to the SDL Perl mailing list with your
+questions (you know, this one) or, better yet, join us live in #sdl
+over at irc.perl.org and we'll be more than happy to assist you and
+try your game out. If you never used irc before, please keep in mind
+people might be busy or in different timezones than you, so you may
+get instant responses or have to wait a few of hours before you get a
+reply. Be patient!
+
+It can be a game about anything. Just make sure it's doable in a week.
+Some games take years to be complete, but you might be surprised at
+how much you can accomplish in just a few hours with SDL Perl :)
+
+Oh, there's one extra rule, actually, and that's mandatory - HAVE FUN!! :)
+
+

Where to submit

Send your games code an all in an email to sdl-devel@perl.org with the
+subject "SDL Perl Game Contest #1: Submission". After a period of entries
+a voting subject will be opened. See SDL Perl Site
+on how to join the mailing list.
+
+
+Cheers,
+
+breno (garu)
+


+

\ No newline at end of file