Really not happy at all with this section. It works, and as far as I can tell it works well but I know its just crowded and ugly. Any suggestions would be welcomed!
Saturday, April 19, 2008
Collision Detection!
Alright so our little '@' moves around the screen now and he doesn't run through walls or off the map now. I think this still needs some work though, I'm not 100% satisfied with the flow of the code. Post any comments please :)
Friday, April 18, 2008
LempRL Made in Python
So I'm starting slowly getting some basics out of the way. Adding one thing at a time and approaching things in a finish this part in one sitting type way. I got two of those done today! Next projects are, loading a map from a file, collision detections and a more polished input method/game loop. Rather than have the player.move() function control the loop I'm going to make an input function and have it pass the keypress to the move function. That way I don't need to pass the window to the move function as all it needs to act on is the coordinates of the player. Not much going on this weekend so hopefully we'll have a bunch of progress.
Subscribe to:
Posts (Atom)