Developing Games with Perl and SDL 248
segphault writes "Andy Bakun has written an excellent 20 page guide to game development with SDL_Perl for Ars Technica. The tutorial, which includes extensive code examples and plenty of screenshots, walks readers through the process of building a clone of the original Atari Kaboom! game." From the article: "One of the biggest benefits of using SDL is that it allows portable media applications to be written without having to be concerned with specific implementations of media libraries for each target platform. Bringing Perl into the picture takes the portability one step further, allowing media-rich applications to be written in a high-level language that can be targeted to a number of platforms. While programming using SDL requires knowledge of C and access to a C compiler, using SDL_perl does not. This greatly decreases the amount of time it takes to get something up on the screen and working."
Hmmmm.... (Score:5, Interesting)
However, it's in Perl. And I really have to ask myself; Do I want to play games coded by people who started programming games in perl?
But seriously, whenever you code a game, you always end up using a scripting language of some kind. Perhaps this just cuts out that virtual middleman that is c/c++?
Re:Fine for simple games but... (Score:5, Interesting)
Low level 2d game libraries are so 1990's ... (Score:3, Interesting)
So, sit down on your bums and write a Perl API for DirectX with good WINE support, folks. ;-)
If you want to make money... do it with Java... (Score:2, Interesting)
If you want to learn game programming... get a decent phone.
Re:Python has been used for this. (Score:4, Interesting)
The nice thing about Python is that since it is bound to just about everything it also supports some very fast and powerful 3d engines such as VTK, OSG, and Delta3d.
Re:Other languages (Score:2, Interesting)
Jake2 [bytonic.de] (Quake 2 clone) as the AC already posted.
Puzzle Pirates [puzzlepirates.com]
Tribal Trouble (good!) [tribaltrouble.com]
check out javagaming.org [javagaming.org] for tons of discussions about the subject.
and tools? how about:
LWJGL: http://www.lwjgl.org/ [lwjgl.org]
JMonkeyEngine: http://www.jmonkeyengine.com/ [jmonkeyengine.com]
Xith3D: http://xith.org/ [xith.org]
And there are probably tons of other games and tools I'm forgetting.
And regardless what the trolls will say, it is perfectly possible to create a 2006-level game in java.
Re:Low level 2d game libraries are so 1990's ... (Score:1, Interesting)
You can use OpenGL in SDL. The net effect, with all of the SDL extra libraries is something along the lines of the entire DirectX toolkit already.
Re:Easy (Score:3, Interesting)
Its a natual progress with languages. Languages like C and C++ are giving way to languages like Java and C#. But interestingly enough Java and C# will be replaced too: by scripting languages like Perl. As programmers, we just have to accept this and move with the tide or drown in ignorance.