Tiled Map

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

Example

Main Hero

Hero Sprites

game.load.spritesheet('player', '../assets/images/characters/hero.png', 134, 176);

Using

Loading

Creating the hero

Update method of the hero

Show

Levels

The level Class

SwitchLevel function

Sounds

The music function

Loading the music

Play/Pause Button

The pause function

Spearman

Sprite

Realization

Realisation

...

Show

Boss Level

Fight

Figh function

Collision

Checking distance between hero and boss

Checking the health

Show

Game

By kirill_tofan

Game

  • 251