Skip to content

This project consists on building a video game using JavaScript and the game engine phaser

License

Notifications You must be signed in to change notification settings

firmoholanda/platform-game-js-webpack-phaser

Repository files navigation

📃 platform-game-js-webpack-phaser

This project consists on building a video game using JavaScript and the game engine phaser.

This is a simple game, made using phaser framework. The objective of this game is to collect the diamond on the scene while trying to avoid the spikes. You start with 3 lives and if you hit the spikes, you lose one. Each diamond gives you 3 scores. So, try to collect all of them. The game is over if you run out of lives or collect all the diamonds. Have fun!

📡 technologies used

  • babel
  • eslint
  • jest
  • phaser
  • webpack
  • git

babel, eslint, jest, phaser, webpack and git was used on this project.

🚀 the project

this project can be found in https://github.com/firmoholanda/platform-game-js-webpack-phaser

app image

🔨 instructions and how to play

to get started with the app, clone the repo:

$ [email protected]:firmoholanda/platform-game-js-webpack-phaser.git

navigate into the newly created folder:

$ cd platform-game-js-webpack-phaser

install the dependencies:

$ npm install

bundle the files and start the development server:

$ npm start

visit this link in your browser:

$ http://localhost:8000/

run tests:

$ npm test

how to play:

the character:

to move around the map with the character you use the arrow keys on your keyboard. each arrow key moves the character in the respective direction. you can use the spacebar to jump.

the spikes:

there are several spikes throughout the map, avoid touching them. if you touch one, you will lose one life. you have 3 lives at the start of the game.

the diamond:

diamonds are the objective of the game, you have to capture each diamond in the current map to advance to the next one. each diamond gives you 3 points. there are a total of 3 diamonds on the game. one for each map.

🤝 contributing

contributions, issues, and feature requests are welcome!
feel free to check issues page.

  1. fork it (https://github.com/firmoholanda/platform-game-js-webpack-phaser/development/fork)
  2. create your working branch (git checkout -b [choose-a-name])
  3. commit your changes (git commit -am 'what this commit will fix/add/improve')
  4. push to the branch (git push origin [chosen-name])
  5. create a new pull request

🤖 contributor

firmo holanda - GitHub

all sounds, images, backgrounds, buttons and the background music can be found on OpenGameArt

🙋‍♂ show your support

give a ⭐️ if you like this project!

📝 license

this project is MIT licensed.

About

This project consists on building a video game using JavaScript and the game engine phaser

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published