The code is shit, but it works. Dont ask me why i didnt just implement 2d physiks...i dont know and i wish i had. Be warned: the move method of the player is probably a warcrime. PS.: Also, everything is in one file, so have fun...