Slashdot Mirror


Developing Games with Perl and SDL

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."

2 of 248 comments (clear)

  1. Python & SDL = Pygame by Andreas(R) · · Score: 0, Redundant

    Actually, I think Python and SDL is a far better combination, see pygame. As example of such a project is , developed using Python and SDL.

  2. Re:Hmm by truckaxle · · Score: 0, Redundant

    Perl itself is slow

    Slow in what way. I recently wrote a data parsing tools that demultiplex's a large binary sensor data file, changes then endian and combines some of the quantities, look for fault conditions and check checksums and finally writes out processed data into separate files. I first prototype in Perl and then rewrote in C. The performance difference was around 12%. The time in production and total lines of code was another story and of the order of 3 to 1.