Archive for the ‘code’ Category

Simplemenu : alpha0 release

Friday, November 7th, 2008

Here's a quick initial release of a tiny 'framework' I'm making, since I might use it in the Mini-LD#5 this weekend. I probably won't even participate this time, but just in case, I present to you ... simplemenu-alpha0.tar.bz2 Requires pygame and rabbyt. It's under the MIT license. I'm regarding this as alpha, ...

TextWidget for PyGame

Monday, September 22nd, 2008

Note to self: Check out TextWidget before I finish my (unreleased) SimpleMenu moduleĀ  ... I may be able to use TextWidget within the SimpleMenu framework .... or the work may have even been done for me since they look similar in spirit.

Mondrian: Final Ludum Dare 11 entry

Sunday, April 20th, 2008

I've just submitted my final game entry for for Ludum Dare 11. You can download it here [Mondrian_by_pansapiens_LD11.zip] (Windows and Linux compatible). More details later. Right now, I have to sleeeeeeeep. Update: Here's the text of the README from the zip. You may need to use the level editor and replace level7.pickle ...

Packaging a Python game for distribution on Windows — py2exe and cx_Freeze

Tuesday, April 15th, 2008

I do my game development on Ubuntu Linux. In case you hadn't noticed, unlike pretty much every Linux distro, Windows does not come with Python installed by default. For distributing games written in Python on Windows, it's nice to create a compiled executable version (using py2exe or cx_Freeze, for example) ...

Profiling Python functions with IPython’s timeit

Monday, April 14th, 2008

If you aren't careful (and even sometime when you are) realtime games written in Python sometimes hit speed problems and require some profiling to bring them to a playable speed. Typically, I would use the Python standard library's "profile" module to find "hot" functions which are stealing all the CPU ...