Py2exe'ing Games

RegExExpress 1.3 3.45mb

Thanks to Eugman for the encouragement, we've now made an EXE package of our game. Part of the reason why it took so long is because we were having trouble getting our data to package correctly in the that was being created with some of the other py2exe scripts floating around. So with reluctance, I dug out my old Skellington py2exe script, and surprisingly, it worked like a champ on the first try! If you're having trouble packaging up your game, please give this a shot and download my Skellington-specific py2exe script. Just put the unzipped files (the .py and .ico files) directly into your gamelib directory and then run it -- it will walk you through the rest. 2.1k

I'm interested in feedback if this works for people -- if we have enough success with it, we might want to consider putting this as a into the next revision of the Skellington -- though if we're going to do that, I'd perhaps like to expand for py2app as well.



HanClinto on 2008/09/19 06:07 of Team R.E.X.

Comments: (log in to comment)

I glad to hear it. My brother thought this looked really cool but he doesn't run python. Thanks a lot. Now you just need to figure out how to fix it so you can run it in curses and then I can play it over ssh(I have so few games I can do that with and I've beaten cursed phoenix to death.)
@eugman: not a pyweek game, but have you beaten nethack to death? it is like cursed phoenix to the Nth power :)
@dmoisset, heh, nethack is toomuch for me. I want simple stuff.

@eugman: It should work under curses with just a little modification -- for nearly the whole contest, I was keeping all Pygame references in -- it was only on the last day when I added the animated train that I needed to have a Pygame reference (for the high-performance clock timer). I haven't run the game under curses lately, and while I think there are probably a few glitches, the first step would be to change the top of, where it says:

import cursesemu as curses
import curses
That should be the start of a Curses port -- maintaining pure terminal support is something that I kept up for a good chunk of the development, and I'm very interested in going back and re-adding this support for any future releases of this game.

While we're on the topic of roguelike recommendations -- I've played more than my share of Nethack, and thoroughly enjoy the game. If you want a simpler roguelike, I can't help but recommend one of my favorite 7DRLs, named Savescummer -- they don't get much simpler than that. :-D

@HanClinto: FYI in keyboards where '^' is a mute key, you cant type '^' ( spanish is one, probably other europeans kbds).
I workarounded by redefining '#' to be taken as '^' in, onKeyHit. Surely they are more clean ways to handle this.

When rating your team game, I included suggestions in the comments, one of wich I want to repeat here to see if people like it ( and encourages you to add):
Reward the player by showing him/her a small ascii art when it solves a problem( not need to be animated ).

Yes, it is purely eye candy, but I think it would be ubercool!.
@claxo: That's a really good idea -- thanks for suggesting that. If you look in, there's a definition for a firework animation that I was planning on playing when you do well (more fireworks for doing better). Is that something along the lines of what you're thinking? I was really cramming to get stuff in on the last day, and that was one of the more unfortunate cuts. :-/ Even so, it's very encouraging to hear you suggest that -- it helps us know we were on the right track. :) That was a very good one -- I look forward to hearing your (and others') other suggestions. Thanks!
@HanClinto: well, fireworks only when you complete a set ( like all Tutorials ), but more simple, non animated, unique ascii arts, for each problem.
I googled ascii art small, (many hits) and find some likeables by example at
@HanClinto : as an alternative to collect existing art, look from programs that convert images to ascii art.
I found one interesting, free, for windows, (textaizer) at :
It is not exactly what you need: can produce ascii black & white from image, and can produce color ascii (but the color comes trough html). To get the curses color you can: parse the html (ugh) or calc the color direct from image. The last seems feasible.

Probably theres more programs floating in the net ?