Skip to content

In this project, I build a shooter game using JavaScript's framework Phaser 3, a "fast, free and fun open-source framework for Canvas and WebGL powered browser games". The Witcher is a slightly different shooter game in which enemies will spawn from the top and the right side of the game canvas. The main character 'Pipoya' fights in the 'Magic C…

Notifications You must be signed in to change notification settings

xtrmdarc/the-witcher

Repository files navigation

The Witcher

This is Microverse's final project in Javascript's course.

In this project, I build a shooter game using JavaScript's framework Phaser 3, a "fast,free and fun open-source framework for Canvas and WebGL powered browser games".

Description

This is an original shooter game built from scratch using Phaser 3 and vanilla Javascript OOP best practices. The game is called The Witcher.

The Game

The Witcher is a slightly different shooter game in which enemies will spawn from the top and the right side of the game canvas. The main character 'Pipoya' fights in the 'Magic Cliff' to prevent monsters to enter her world. You control Pipoya's movement with the arrow keys while shooting arrows with space and jumping with the up arrow key. Defeat as many enemies as you can before you run out of health or time!

You get points after killing an enemy. Each enemy will give a different fixed number of points. You'll also receive extra time after killing an enemy.

In the end, you can enter your name on the leaderboard and check the highest scores.

Live version

Play it online here

How to play

  • Use the right and left arrow keys to move Pipoya around the map.
  • Use the up arrow key to jump to evade enemy attacks.
  • Use the space bar to shoot Pipoya's arrows.

You can play the game online clicking here or locally following these steps:

  • Click on the green button "Clone or Download"
  • Click on Download ZIP
  • Extract the game
  • In your terminal, navigate to the game's folder
  • Run 'node server.js'
  • Open, in your browser, 'localhost:8080'
  • Beat my record and make my name disappear from the Leader Board

Design

The game uses high-quality sprites to bring all scenes to life. You can expect well-designed animations and map textures. I used this sprite pack for animating heroes and enemies Game Objects and this one for rendering the map.

Pipoya

- Role: Main Character
- Health: 100
- Damage: 10
- Weapon: Arrow

Droppy

- Role: Enemy
- Health: 20
- Damage: 5
- Weapon: No Weapon
- Points: 40

Wolfy

- Role: Enemy
- Health: 50
- Damage: 10
- Weapon: No Weapons
- Points: 90
Tip : Don't fight this guy if you want to remain alive.

Ogre

- Role: Enemy
- Health: 200
- Damage: 30
- Weapon: Mace
- Points: 100

Scenes

Main Menu

Main Menu

Play

Play Scene

Game Over

Game Over Scene

Leaderboard

Leaderboard scene

Built With

  • JavaScript
  • A bit of HTML and CSS for the front end
  • Phaser 3
  • Webpack
  • Eslint
  • Stylelint
  • Babel
  • Jest
  • Express
  • Node
  • ES6
  • NPM
  • Github
  • Heroku for the deployment
  • Leaderboard API service

NPM available scripts

Use "npm run-script " followed by any of the following commands :

  • "build": "webpack --mode production"
  • "watch": "webpack --mode development --watch"
  • "test": "jest"

Future Work

  • Add MMORPG functionality
  • Add Music
  • Make a mobile version
  • Develop the lore
  • Add more complex levels and worlds

Contact

👤 Diego Antonio Reyes Coronado

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

About

In this project, I build a shooter game using JavaScript's framework Phaser 3, a "fast, free and fun open-source framework for Canvas and WebGL powered browser games". The Witcher is a slightly different shooter game in which enemies will spawn from the top and the right side of the game canvas. The main character 'Pipoya' fights in the 'Magic C…

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published