This repository follows the Platformer Tutorial for Defold Game Engine video series on my Unfolding Gamedev channel.
Each commit here is made at the end of each video, so you can travel through the history or look up the final code whenever needed.
- Setting up project
- Adding basic visual assets (thanks to Kenney!)
- Making atlas with images
- Making tilesource
- Creating level scene with tilemaps
- Adding sprite representing our hero
- Running game
- Setting up input bindings
- Writing script for handling inputs
- Adding functionality to move game object according to inputs
- Adding functionality to play animations and flip sprites according to direction
- Attaching script to game object as component
- Adding gravity and velocity based movement implementation
- Adding collision objects to level and hero character
- Adding collision shapes based on primitive shape and tilesource
- Adding collision handling between hero and level
- Adding jumping mechanics
- Adding compensation function for collision handling
- Improving compensation function
- Adding particleFX and changing script to play it when jumping and landing.
- Adding sound components and playing them when jumping and landing.
LICENSE: MIT
If you run into trouble, ask on the Defold forum or Discord
❤️ If you like what I create, you can also support me on:
Also, wishlist a game I'm working on: Witchcrafter: Empire Legends
Happy Defolding!
Pawel