Tower Defense Game
This is a simple tower defense game for Decentraland.
The game generates a random path and places traps in random locations along that path. Then enemy entities are spawn and follow this path, unless you activate the traps to stop them. The game supports multiple players, has a scoreboard and has a reset button to restart the game at any time.
The process of creating this example is described in detail in a video tutorial.
Start the Scene
You'll want three different command prompts for this.
In the first command prompt, navigate to the
server\ directory and run:
npm run watch
This will build your application. If any files are modified, it will rebuild automatically.
In the second command prompt, also in the the
server\ directory, run:
This hosts your server for local testing, at ws:
And in the third prompt, navigate the the project directory and run:
This starts the game and should open a new tab automatically to
This will open a browser tab with the game.