Mario-Fan
Posts: 32
Joined: Fri Dec 28, 2012 2:34 pm

Collision detection on solid walls in Pygame

Thu Mar 06, 2014 8:00 pm

I'm making a Mario-ish platformer (indeed, the physics are completely cloned from SMB1) in Python 2.7.5 to teach my mentally disabled sister how platformers work. I'm kinda stumped though. The collision detection seems fine, but the shunting-the-player-out-of-the-block part is kinda broken. I've tried several different things and have ended up with rather messy code. Sorry about that :/
I made an environment similar to Love2D's environment in an attempt to make myself more comfortable.
If any of you are able to help I would very much appreciate it.
Attachments
platformer.zip
Source code
(5.01 KiB) Downloaded 83 times

Return to “Python”