- Pirate Platformer
This game is a Python-based pirate platformer using Pygame. The maps were map with Tiled Map Editor. In addition to making maps quick and easy, Tile also made spawning the player and enemies much easier. In Tile, we can set the player's start and end points as well as set enemies' movement constraints. This simplifies enemy logic by only allowing enemies to move left or right until they reach a restricted tile. Once they reach the restricted tile, they turn and walk the other way. Collision detection does not need to be complicated with this approach.
DO NOT ROTATE A TILE IN TILED WHEN CREATING A LEVEL. I had to figure this out and it took a while among other things. If you find a fix, please let me know.
You will need to have Python installed on your machine. After this you will need to make sure you have Pygame installed. On Windows you can enter the following commands into the terminal:
- To install Pygame: pip install pygame
- To run in src folder: python main.py
You will need to have Python installed on your machine. After this you will need to make sure you have Pygame installed. On Linux you can enter the following commands into the terminal:
- To install Pygame: sudo apt-get install python3-pygame
- To run in src folder: python3 main.py
- Move left: Left Arrow
- Move right: Right Arrow
- Jump: Up Arrow
Overworld level 1 will cause a crash right now, and other levels past it will too beause they are level 1
- Move to next level: Right Arrow
- Move to previous level: Left Arrow
- Enter Level: Space