No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.decentraland Initial commit Aug 15, 2018
assets Initial commit Aug 15, 2018
server update to 4.1 Sep 12, 2018
.dclignore Initial commit Aug 15, 2018
.gitattributes Initial commit Aug 15, 2018
.gitignore Initial commit Aug 15, 2018
LICENSE Initial commit Aug 15, 2018
Readme.md update to 4.1 Sep 12, 2018
assets.zip Initial commit Aug 15, 2018
package-lock.json update to 4.1 Sep 12, 2018
package.json update to 4.1 Sep 12, 2018
scene.json Initial commit Aug 15, 2018

Readme.md

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:

npm start

This hosts your server for local testing, at ws://localhost:8087

And in the third prompt, navigate the the project directory and run:

dcl start

This starts the game and should open a new tab automatically to http://localhost:8000

This will open a browser tab with the game.

Tutorial

Written: https://steemit.com/tutorial/@hardlydifficult/decentraland-tutorial-a-simple-tower-defense-game

Video: https://youtu.be/XPcMaGtX37k