X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2Fblog-0024.html-inc;h=84a740ff4f425ede40b97567d59b2b37c0970fbf;hb=a05e5d4499fb58198e463162d0385e8a156e1f03;hp=98b822616b832b8b8ee51a0d1e0f372a14f32f2f;hpb=c59d9ab1a32a69fcdb54ab78e21e31ee26d88e7a;p=sdlgit%2FSDL-Site.git diff --git a/pages/blog-0024.html-inc b/pages/blog-0024.html-inc index 98b8226..84a740f 100644 --- a/pages/blog-0024.html-inc +++ b/pages/blog-0024.html-inc @@ -1,28 +1,35 @@

-Thanks nothingmuch, and updates +Migrating Sol's Tutorial of SDL to SDL_Perl

-
struggle,
-
live,
-
cease,
-
die
-

-
After a struggling with XS and opaque C structs in the experimental SDL::Rect for a long time. Nothingmuch comes along and solves my problem with this beautiful module XS::Object::Magic. So I will start moving my ugly XS to Magic Land.
+
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:

-SDL Perl Tutorials
+
$ 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.

-This past week I have been working on the sorry state of SDL Perl tutorials. Currently I am working on a Tetris Clone. I am hoping to have it done by next Thrusday for TPM meeting. This tutorial is a mix of several tutorials I found online. Another Lunar Lander tutorial has been submitted by Nelson Ferraz.
+Both Windows and Linux needs to install Alien::SDL

-If anyone has any really good tutorials for game development (regardless of language) or even request of tutorials. Send it my way I will look into them.
+
$ cpan Alien::SDL
** Add sudo to this for Linux

-New SDL Perl site
+

Getting Bleeding SDL


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

-Also we have begin work on a new site. It is still needs work. New Site.
+Extract it and cd into the folder run
+
$ cpan . 
** The dot is needed
+** in Linux you may need to do sudo

---yapgh
+Then you can run this script by doing

-
-
-


-

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


+

\ No newline at end of file