pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
PyMaze

PyMaze - 1.2

Kevin (jach)

Tags:

Description

I made this in a few hours as one of the first steps toward an edutainment game I have in mind. Still, it's pretty fun by itself when you're bored, so I'm putting it up here. (If the guy moves way too fast, that means you have a super de duper computer and I am jealous!) More info in the readme.

Changes

I added a few command line arguments like --diff, --dim, and --path. Changed the overall look of the maze and made the actual program more efficient. The maze generation algorithm is still recursive though...

Links

Home Page: http://shared.nincheats.net/zips/PyMaze.zip
Source: http://shared.nincheats.net/zips/PyMaze.zip

Screenshot


click to view original size

Releases

PyMaze - 1.2 - May 8, 2008
PyMaze - 1.1 - May 5, 2008

Pygame.org account Comments

If you wish to leave a comment with your pygame.org account, please sign in first.

December 5, 2008 8:28pm - Jack Ha - nickname: (sabaki)
Cool! Add a solver too? :)
May 12, 2008 8:36am - Dylan J. Raub - nickname: (dylanjraub)
Ohhh... I get it! Not a bad Idea.
May 11, 2008 4:20pm - RB[0] - nickname: (roebros) - 4/5
Very nice :D
I love the map generator - a lot simpler than ones I have tried :)
Beat my first try though :D
May 8, 2008 9:08am - pymike - nickname: (pymike)
Cool new release! It would be neat if it had a menu and an end screen :-)
May 6, 2008 8:59pm - Kevin - nickname: (jach)
Dylan: Look at the code. =P The readme's explanation isn't entirely correct though (that was an older and slightly different algorithm that didn't work out right.) You'll want to look at maze.py. To sum it up though, it takes current cell, finds neighbors, goes to a neighbor that hasn't been visited, knocks down the wall between them, and repeats with the neighbor as the new current cell.
May 6, 2008 8:00am - Dylan J. Raub - nickname: (dylanjraub)
How? I've never been able to make such an algorithm... (how?)
May 5, 2008 6:19pm - Kevin - nickname: (jach)
Francesco: Thanks! And about the frame rate control, I know, but putting any cap on it makes it run too slow here. (200fps is what I get uncapped, and about the speed I want it, but with a 200fps cap I only get about 50.) But when I get around to the 1.2 release the speed will be equal for everyone and stuff will be optimized to run better.
May 5, 2008 4:23pm - Francesco Mastellone - nickname: (effeemme) - 4/5
Oh, and very nice game!
May 5, 2008 4:23pm - Francesco Mastellone - nickname: (effeemme)
Just add
clock.tick(60.0)
to the last line, to make the game equally fast on any platform!
May 5, 2008 3:40pm - Kevin - nickname: (jach)
Dylan: Yes, it randomly generates a new maze each time you run it using a recursive algorithm I might eventually make iterative.
May 5, 2008 9:29am - pymike - nickname: (pymike) - 4/5
Yay! I beat it! Guy moves kinda fast though.
May 5, 2008 8:18am - Dylan J. Raub - nickname: (dylanjraub)
Question: is it randomly genorated?
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
Oct 21, 2014


Oct 20, 2014

Oct 16, 2014

Oct 9, 2014

Oct 8, 2014

Oct 7, 2014

Oct 4, 2014

Oct 1, 2014

Sep 19, 2014

Sep 17, 2014

Sep 9, 2014

... more!
 
for pygame related questions, comments, and suggestions, please see help (lists, irc)