Skip to content

A Legend Of Zelda inspired game that was built using Phaser 3. This repo contains all of the code used in the course that is hosted on YouTube here: https://www.youtube.com/playlist?list=PLmcXe0-sfoShPM_vCNsuumh7crnNaLCwX

Notifications You must be signed in to change notification settings

devshareacademy/phaser-zelda-like-tutorial

Repository files navigation

Legend of the Wispguard

License

Monster Tamer Logo

Legend of the Wispguard - Zelda-like Tutorial with Phaser 3!

This repo is the official code repository for the Legend of the Wispguard: Build a Zelda-Like Game in Phaser 3 Course that is available on YouTube.

Demo

You can find a playable demo of the game on Itch.io here: Legend of the Wispguard

Game play Screenshot 1 Game play Screenshot 2 Game play Screenshot 3

How To Play

Currently, the only supported way to play the game is with a Keyboard.

Controls

Keys Description
Arrow Keys (Up, Down, Left, and Right) Moves the player. Navigate menu.
Z Attack
X Lift/Throw
Enter Select menu option.

Local Development

Requirements

Node.js and pnpm are required to install dependencies and run scripts via pnpm.

Note: You can also use npm to install the required project dependencies. To do this, replace the commands listed below with the relevant npm command, such as npm install or npm run start.

Vite is required to bundle and serve the web application. This is included as part of the projects dev dependencies.

Available Commands

Command Description
pnpm install --frozen-lockfile Install project dependencies
pnpm start Build project and open web server running project
pnpm build Builds code bundle for production
pnpm lint Uses ESLint to lint code

Writing Code

After cloning the repo, run pnpm install --frozen-lockfile from your project directory. Then, you can start the local development server by running pnpm start.

After starting the development server with pnpm start, you can edit any files in the src folder and parcel will automatically recompile and reload your server (available at http://localhost:8080 by default).

Deploying Code

After you run the pnpm build command, your code will be built into a single bundle located at dist/* along with any other assets you project depended.

If you put the contents of the dist folder in a publicly-accessible location (say something like http://myserver.com), you should be able to open http://myserver.com/index.html and play your game.

Static Assets

Any static assets like images or audio files should be placed in the public folder. It'll then be served at http://localhost:8080/path-to-file-your-file/file-name.file-type.

Credits

This project would have not been possible without the use of some awesome assets created by some amazing artists! This project would not have been possible without the following people/resources:

Asset Author Link
Press Start 2P Font CodeMan38 Google Fonts
Player Foozle Legend Main Character
Enemies Foozle Legend Enemy Pack 1
Dungeon Pack Foozle Legend Spider Dungeon
UI Icons Foozle Legend UI Icons

Issues

For any issues you encounter, please open a new GitHub Issue on this project.

About

A Legend Of Zelda inspired game that was built using Phaser 3. This repo contains all of the code used in the course that is hosted on YouTube here: https://www.youtube.com/playlist?list=PLmcXe0-sfoShPM_vCNsuumh7crnNaLCwX

Resources

Stars

Watchers

Forks

Packages

No packages published