Tiled is a 2D level editor that helps you develop the content of your game
Tiled Map Editor
Tilsesets
Dark tileset
Light tileset
The map.json
Using maps
Loading the maps
Using the map
game.load.spritesheet('player', '../assets/images/characters/hero.png', 134, 176);
Loading
Creating the hero
Update method of the hero
The music function
Loading the music
The pause function
Figh function
Collision
Checking distance between hero and boss
Checking the health
By kirill_tofan