Hey Moodster,

Interesting idea. Much like Molt I've played with SDL but only in C/C++ (Programming Linux Games by John R. Hall is a great book IMO). I didn't even know there was a Perl SDL API until this post, otherwise I would have looked into it long before now.

I've always wanted to combine Perl into games programming because of its maintainability and flexibility and ease of coding. Plus it is a relative piece of cake to embed it into an engine. My thought was always that I'd write a C++ engine but that various subsystems could call Perl for things like player AI, networking, game logic, but C++ would do the heavy lifting for OpenGL, sound, etc. This sounds like an exciting alternative.

Sorry that I can't offer any "I've been there or done that" advice, but it sounds like a good plan and I'm sure it will be fun. And thank you so much for bringing this idea up - now I have something new to play with too. :) Definitely check out the PLG book from No Starch publishing too. It is a good overview of SDL and a good overview of game design in general.

Update: You're probably aware of this Moodster, but for learning about using an embedded Perl interpreter do a perldoc on perlembed. I haven't tried it myself, but it doesn't look too terrible to work with.

Good luck,
{NULE}
--
http://www.nule.org


In reply to Re: Game programming using SDL and perl? by {NULE}
in thread Game programming using SDL and perl? by moodster

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.