Home ··· Articles ··· Documentation ··· Dev ··· Irc ··· Download ··· About


Phoenix PerlMongers: SDL01 - Introducing SDL Perl
Wednesday, 26 October 2011
Tags: [Presentation] [SDL]
Douglas E. Miles presents "Introducing SDL Perl"
Presented October 6, 2011 at the offices of www.liquidweb.com in Scottsdale, Arizona
Here's a link to the slides:

Perl GameDev: an interview with Construder's author
Thursday, 07 July 2011
Tags: [Construder] [Game] [elmex] [gamedev. opengl] [games] [interview]
For the past several months Perl has gained a lot of momentum in game development. The SDL Perl community now has a complete manual for beginners and nice, sugary layers built on top of a fast and stable API. March's game challenge spawned over 15 new games , and all over the world we've seen mini-courses, talks and even printed magazine articles. But nothing prepared us for Construder : a jaw dropping 3D game created by Perl hacker Robin Redeker, known as "elmex". It features futuristic settings with some nice graphics and an (almost) infinite world for you to build and play with!

Construder is so cool we wanted everyone to know about it, so we made a quick interview with Robin, who is not only a great programmer but also a very nice guy. Check it out!

YAPC::NA Links and Presentation of the TALK
Wednesday, 29 June 2011
Tags: [Game Devel] [Perl] [YAPC] [YAPC::NA] [YAPC::NA 2011]

.prezi-player { width: 550px; } .prezi-player-links { text-align: center; }

A new Box2D Perl Demo!
Tuesday, 03 May 2011
Tags: [Box2D] [Perl] [Physics] [SDL]
So since the last 2 days, Abram Hindle has made an awesome physics demo.

You can get the script from the github repo.

Introduction Box2D for Perl Games!
Monday, 02 May 2011
Tags: [Box2D] [Perl] [SDL]
So over the last couple days I have started binding Box2D 2.1.0 to Perl. Box2D is a 2D physics engine used in game such as the popular Angry Birds .  Here is the repository:
Also here is the helloWorld Box2D example in pure Perl and rendered with SDL Perl. You can

SDL Perl Game Contest - week 4 roundup
Saturday, 02 April 2011
Tags: [Contest] [Game] [Perl] [SDL] [games]
Hi everyone! Sorry for delaying this post, it's been one hellish week...
Wow, 4 weeks already... can you believe it? I'm really sad this is the last round of the SDL Perl Game Contest - I guess time flies when you're having fun - but I'm also pretty excited to show you guys the awesome entries we had this week. Check'em out!
Electric Lines , by JT Palmer (jtpalmer)

SDL Perl Game Contest - week 3 roundup
Wednesday, 23 March 2011
Tags: [Contest] [Game] [Perl] [SDL] [games]
Alright, boys and girls, it's the moment you've been waiting for all week: The SDL Perl Game Contest weekly showdown. Round. Three. FIGHT!!
Bubble Breaker , by Tobias Leich (FROGGS)


SDL Perl Game Contest - week 2 roundup
Wednesday, 16 March 2011
Tags: [Contest] [Game] [Perl] [SDL] [games]
Yes, I know it's already wednesday, sorry for the delay! The SDL Perl Game Contest continues - I should know, I'm about halfway through my third game now! - and last week we had some real nice entries. Check 'em out!
Wheel of Fortune , by Tobias Leich (FROGGS)


SDL Perl Game Contest - week 1 roundup
Tuesday, 08 March 2011
Tags: [Contest] [Game] [Perl] [SDL] [games]
As you probably know, last week we started the SDL Perl Game Contest (more like a Game Challenge, as people pointed out), where you have to write one game per week throughout the entire month of March!
So far we had some awesome entries - people really stood up to the challenge! Check them out:
Solar Conflict , by JT Palmer (jtpalmer)

The SDL Perl Game Contest!
Friday, 25 February 2011
Tags: [Contest] [Game] [Perl] [SDL]
Let's get a Party Started
Sure, you know what SDL is, right? Well, SDL has very nice Perl
bindings that let you use the power and flexibility of Perl to write

Closing the Grant
Tuesday, 18 January 2011
Tags: [Grant] [Manual] [SDL]
With the following commit I am closing the grant.
This is what has been accomplished from each of the objectives:
Cleaner Code and a lot of memory and performance improvements ( SDL 2.527 released Jan 18th )

Grant Progess Reports 1-3: Sept - Nov
Monday, 22 November 2010
Tags: [Grant] [Perl] [SDL] [Updates]
As you know I have received a TPF grant to write a SDL Perl Manual.


SDL 2.518 Released: Neverhood Clone
Monday, 04 October 2010
Tags: [EyeCandy] [Perl] [Releases] [SDL]
So Blaizer started a Neverhood clone and fixed a lot of the Controller code to make it work nicely. This has been released as SDL 2.518. It does break back compat a bit, but not too much.
Have a look at http://sdl.perl.org/SDL-Deprecated.html#2_517 to see the breakages.
The documentation for Controller has also been improved considerably.

SDL Manual: Reviewers Needed
Monday, 27 September 2010
Tags: [Grant] [Manual] [SDL]
Work has begun on the 4th chapter of the SDL Manual. The code is on github , and I regularly update the pdf on our server.
Writing manuals is not of my greatest skills, so I would love some review of my work. Any problems can be reported in the issues .
If you want to help with writing the manual, please join me on #sdl irc.perl.org or email us at

SDL 2.512 released - Layers Support added
Tuesday, 31 August 2010
Tags: [EyeCandy] [Game] [Releases] [SDL]
The new release of SDL adds Layer support, which means that rendering surfaces by layers is a lot easier. SDL 2.512 has several other changes too. An experimental physics interface and minor fixes. Have a look at the CHANGELOG.
Here is an implementation of the new Layer stuff. Solitaire .


Introducing SDLx::Controller::Object, with our good friend Mario!
Friday, 20 August 2010
Tags: [Demo] [Perl] [Physics] [SDL]
Hi Folks
This past week I have been working on making interfacing physics with SDL rendering a lot easier. The idea was to provide the user a callback to describe the acceleration of their object in the X, Y axis and Rotation. Using this idea I have completed a preliminary work for SDLx::Controller::Object. The demo below shows an example that was made with it. The SDLx* code is available at http://github.com/kthakore/SDL_perl and demo code is available at http://github.com/kthakore/scroller .
Mario Demo using SDL Perl from SDLPerl on Vimeo .

Perl+SDL 3D Rendering
Saturday, 31 July 2010
Tags: [Perl] [SDL] [Showcase]
Recently we have done a lot of work on the next release of SDL Perl. But it all pays off when I see users do cool things as one of the users has done below. Talon^++! This project is a great example for people wanting to learn 3D from scratch.
This was a project to test how well Perl+SDL performs and does not use OpenGL at all. This is all perl and SDL, with the help of libsdl_gfx for SDL::GFX::Primitives. Texture mapping doesn't use SDL::GFX::Primitives because textured_polygon just takes a surface, tiles it, and clips out the polygon, which doesn't look 3D at all.

SDL 2.503 Released!
Thursday, 22 July 2010
Tags: [Perl] [Releases] [SDL]
SDL 2.503 has been released on to CPAN. The changes are mostly in the new features added to SDLx::* layer. However as our continuing attempt to improve cross platform support we have some low level fixes.
Most interstingly we have begun work on SDLx::Sprite::Animated. Although, volatile, this addition will be highly anticipated. We look forward for more work on it soon. Additionally are the changes in SDLx::Surface. SDLx::Surface is an attempt to provide gfx, pixels, video and low level surface functions in a combined and simpler interface.
Since SDLx::Sprite and SDLx::App depends on SDLx::Surface, new features will be propagated and the magic amplified! These are exciting times for SDL in Perl. So come join us for great justice on #sdl irc.perl.org or sdl-devel@perl.org .

Huge World Maps in less then 100 lines
Friday, 16 July 2010
Tags: [Example] [Perl] [SDL] [Syntax]

Hello folks,
Recently we have been working on making the Perl syntax sugar for SDL in the form of SDLx. So far we have got the SDLx::Surface and SDLx::Sprite (garu++) done. So the first thing we did was throw together a quick Zelda map walker. As you can see above.  The code is at  http://gist.github.com/478440 . The SDL code that this depends on will be SDL 2.503 soonish . We are in the process of cleaning up some more SDLx and Alien::SDL bugs. After that SDLx::App will be overhauled to make this sort of thing even easier. Finally living up to our goal of  'Simple Games Easy. Complex Games Possible.' 
UPDATE: with some help, and newcomer jtpalmer's help we have added Link

--caio yapgh


The Build Process of SDL Perl
Wednesday, 07 July 2010
Tags: [Building] [Perl] [SDL]
A while ago I had a long chat with mst on why SDL uses Module::Build rather then Make. I told him it is a simple matter of code inertia. The existing Module::Build system has worked well for us so far. Never the less, he convinced me that switching to Make will improve debugging the Build system. But to be able to switch we will need to completely replace the Build system. I am not prepared to do that so I will just present the requirements so mst or someone else can at least attempt to switch.
The Build Process

SDL RC 2.5 decides to play with PDL
Tuesday, 29 June 2010
Tags: [PDL] [Perl] [SDL]
PDL provides great number crunching capabilities to Perl and SDL provides game-developer quality real-time bitmapping and sound.
You can use PDL and SDL together to create real-time,
responsive animations and simulations.

Providing direct memory access to SDL_Surface's pixels
Wednesday, 23 June 2010
Tags: [Pack] [Perl] [SDL] [Surface] [XS]
In an attempt to make pixel access easier on SDL_Surface pixels. I have started work on SDLx::Surface . So far I have only start on the 32 bpp surfaces.
The general idea is to make Pointer Values (PV) of each pixel in the surface and place them into a 2D matrix. First I make pointer values like this:
SV * get_pixel32 ( SDL_Surface * surface , int x , int y )

SDLpp.pl: Packaging SDL Scripts Alpha
Friday, 14 May 2010
Tags: [Packaging] [Perl] [SDL]
After a lot of patches and head scratching I have an alpha version of SDLpp.pl . The purpose of SDLpp.pl is to allow SDL perl developers to package their game for end users.
Here is the shooter.pl packaged up:


Getting people to use SDL Perl: Docs, API, and Distribution
Friday, 07 May 2010
Tags: [API] [Design] [Docs] [Perl] [SDL]
The road so far
Things have been busy but fruitful. Our two core modules are getting to be a bit more stable. Alien::SDL 1.405 is behaving well. This foundational stability will start to show results in SDL too I believe. Most excitingly the main developer of frozen-bubble is reviewing our Games::FrozenBubble port to CPAN. All good and well, but to keep this project going we need to improve.
Getting people to use SDL Perl
After a long chat with a new SDL user on #sdl today, I realize we still have some way to go. Currently it seems we are lacking in a few areas. We can definitely use some feedback and help in these areas.

We have more docs now on http://sdl.perl.org but they suck
What type of tutorials do you think will be good for beginners?
A project start to finish?
Individual tutorials for various topics?
What needs to go in SDL::CookBook?

API sweetness
SDL Perl depends on distinct C libraries
This makes naming conventions, data formats different the SDL:: namespaces
How do people design this stuff?
We are hackers and we just go do stuff but I think this needs some prior thought
Any takers?

If SDL scripts can be packaged up simply for game developers to distribute their games it will be a big plus
One way is a Wx::Perl::Packer clone
Another is a CPAN/Steam clone that game devs can upload games too and people can point and click download games? 
If anyone wants to help in these areas please talk to us on sdl-devel@perl.org. 


©2009. designed by FROGGS, hosted by mst, maintained by kthakore