I went through the tutorial on Making a Dungeon Crawler with Phaser 3 to learn how to use Phaser 3, Parcel, and TypeScript to make a Zelda-type top-down perspective game. After finishing the tutorial, I continued applying my knowledge to just add some creative features to the game. This is currently a work in progress.
I've completed the tutorial, and in the end, I had a map with enemies and a character that can walk around and get hurt by the enemies and throw knives to destroy them. There were chests to collect coins and potion to hurt/help player health. Since then some features I've added have been:
- More levels
- More enemies
- More characters the player can choose
- Different weapons for each character
- Spikes as another item that hurts the player
- Sound effects and music
- Menu, Options, and Start screens, as well as a Pause screen
- Cheat codes 😁
- Refactored the code to have general classes for enemies, players, items, and weapons.
You'll need Node.js, npm, and Parcel installed.
Clone this repository to your local machine:
git clone https://github.com/joshuacurtiss/dungeon-crawler.git
This will create a folder named dungeon-crawler
.
Go into the project folder and install dependencies:
cd dungeon-crawler
npm install
npm run start
The game will be hosted on port 4000, like: http:https://localhost:4000
npm run build
Production files will be placed in the dist
folder. Then upload those files to a web server. 🎉