X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2Fblog-0021.html-inc;h=84a740ff4f425ede40b97567d59b2b37c0970fbf;hb=c8ad4fe9f211e727310a1ce6d23ffb1d7822d71f;hp=a8a163220ff9647ca97579011a8f2b95bc4f788c;hpb=cf23a5dab86667dca8475ee830e684c9944f115f;p=sdlgit%2FSDL-Site.git diff --git a/pages/blog-0021.html-inc b/pages/blog-0021.html-inc index a8a1632..84a740f 100644 --- a/pages/blog-0021.html-inc +++ b/pages/blog-0021.html-inc @@ -1,6 +1,35 @@

-Newbie Friendly Perl Projects +Migrating Sol's Tutorial of SDL to SDL_Perl

-
A seed needs soft soil and water to grow
This is a reply to szabgab's post on how to get newbies interested in Perl modules. Being a newbie in Perl myself I thought I should take a shot.

I was thinking you can make projects more accessible to newbies by having a step by step plan included with where they need to look. For example for docs of SDL_perl:
  1. Look at SDL docs [link]
  2. See where SDL_perl is using the same functions [link] and the docs to this file [link]
  3. Use the pod format to add it to the source [link to using pod]
  4. {BONUS} Come up with tutorial or cookbook [link to example]
  5. Submit code to github [link] or email them to me [link]

Basically assume nothing is known. I know this may seem demeaning but I am a newbie to Perl and sometimes I hate looking for crust (docs). I call it crust because a crust is useful for me to eat a pizza slice, but it has no flavor .

--yapgh
\ No newline at end of file +
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