Skip to content

paweljarosz/defold-platformer-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Defold Platformer Tutorial

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.

Part 1 - v0.1

  • 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

Part 2 - v0.2

  • 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

Part 3 - v0.3

  • 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

Part 4 - v0.4

  • Adding jumping mechanics
  • Adding compensation function for collision handling

Part 5 - v0.5

  • 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


About

Repository following the Platformer Tutorial for Defold game engine explained in details in the video series on my Unfolding Gamedev channel.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages