A sample showcasing how to create a simple platformer with a map with Tiled Map Editor.
In the source code, you can see:
StateMachineis used in the
Playerclass to plug different behaviour when jumping, walking...
- How to create an animated spritesheet from code (still in
Playerclass, but also non-animated sprite in
- How to enable
arcadephysics so that the player can move around and collide with tilemap
- How to extract data from Tiled's
TMXformat to add additional boxes on the map and define player position
(Assets from Kenney Game Assets)
Next example ➔ It will Fall (LD49) (Jam Games)