Giter VIP home page Giter VIP logo

xtrmdarc / the-witcher Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 5.0 47.33 MB

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 Cliff' to prevent monsters to enter her world.

JavaScript 97.50% HTML 2.41% CSS 0.08%
arrow-key shooter-game

the-witcher's Introduction

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!

the-witcher's People

Contributors

xtrmdarc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

the-witcher's Issues

Peer-to-peer code review by Team #78 - The Hummingbirds ๐Ÿฆ

  • Fix the resolution bug/cheat where the enemies fall off the right side border of the screen.
  • You may post your game on html5.wnhub.io for professional opportunities.
  • Pretty cool and complex project.
  • Maybe find out if it's possible to optimize the game animation to make it speedier.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.