Malloc is a little Sokoban clone I wrote in C, using the “Simple DirectMedia Layer” (SDL). The advantage of SDL is that it’s cross-platform, so I can publish games on Windows, Mac and Linux. The disadvantage is that it doesn’t have hardware acceleration, unlike OpenGL. It is, however, a lot simpler, with plenty of resources, so it’s great to learn with.

I used M@teo‘s C/SDL tutorial from the “Site Du Zero“, which I’d heartily recommend to anyone who speaks French: that I’d rather follow his tutorials than ones written in my mother-tongue says a lot for their quality. Along the way I added the odd “improvement”, extra feature and finally some nice, 64×64 sprites (shrunk from 128×128). The game might be good for introducing kids Memory Allocation, who knows?

Cross compilation, despite using a cross-platform library, proved rather difficult. Ultimately it was far easier to use VirtualBox to emulate Windows XP and to compile the Windows versions pseudo-natively. Luckily Codeblocks, my IDE of choice, is also cross-platform, so I was able to send across and compile new versions quite easily once I’d set everything up on the guest.

Recent Posts


Working a 9 to 5 job is tiring, who’d have thought?

A lot has happened since my last post: I’ve been busy organising game jams and making games. I suppose it’s better to make games than talk about them, but it does seem like a shame not to have some kind of record. Last weekend we organised a second edition of our association’s game jam “Funky Future”Funky Future logo

Continue reading

  1. Game Jamception Leave a reply
  2. 7DRL: we lost the battle, but not the war! 2 Replies
  3. #1GAM = one game a month! Leave a reply
  4. “Baptême du jeu” the game jam incubator! Leave a reply
  5. Ode to little men running around on-screen Leave a reply
  6. Ludum Dare 25 – Montpellier real-world gathering Leave a reply
  7. 5 obligatory Firefox plugins 2 Replies
  8. “Art Game Weekend 3″: Epic Failure Leave a reply
  9. Kickstarter, Humble and Linux 1 Reply