(cross-posted from jeremyslade.com)
I’m working on some OpenGL-based games for Android, so I pulled out code for a project I did for a class at Stanford in 2003 — my first and only game to date. It was fun to reminisce, and perhaps someone else might have some fun with the code (see below).
From the README, describing the basics of the game:
You control a flying magic carpet, pursuing Ali Baba and his 40
thieves across the desert. The object is to kill all of the thieves,
by lobbing exploding coconuts at them, before they make it to the
safety of their cave.
And of course this great memory, also from the README:
Just for humor: my two sons (5 & 3) were very fascinated with the
game, anxiously following the development. One night they were
sitting on my lap actually playing it, when the 5-yr-old puked up all
over my desk, keyboard, red book, laptop, etc (vertigo?) That was a
bit of a setback![]()
The sacrifices we make to bring you great games…
I had to hack the source a bit to build with more recent versions of g++ etc. I’ve included two tarballs with the full source plus binaries for two platforms:
- WinXP - alibaba-cs148-winxp-cygwin.zip
- Ubuntu 9.04 - alibaba-cs148-ubuntu-904.tar.gz
Enjoy! You’re free to use the code however you want (except to claim it as your own and submit it for another school project)
BTW — Nothing there yet, but I’ll be putting the Android games over on CrazyheadGames.com

very fun, i remember you showing me that. i still think the thieves look like cows.
Yes, the thieves look like cows (if you use your imagination). I was intending to do a person on a camel, but ran out of time for the assignment. It’s got a unique look as it is
Speaking as one who has trouble following directions in the HTML for Dummies book, I don’t get it. No doubt it is cool, fun, awesome, and deserves congratulations.
I think its cool i will have to show it to louis he is also into stuff like this he would love it, His told me before that one of his dreams is to learn programing so that he can make his own game.
good job jeremy.