Platform Game

Contributors Forks Stargazers Issues

Platform Game

About the project

This is a platform game which was created using Phaser library and the given assets in itch.io .

Setting up game on your local machine

  • Make sure you have node installed.
  • Clone this repository.
  • Open this project in a code editor.
  • Open a terminal in this directory path.
  • Run npm install and wait for all the dependencies to install.
  • To run the project in development mode, run npm run dev.
  • Open http://localhost:8080/ link in your browser and you should be able to play the game now.

How to play the game

  • Click on Play option to start the game.
  • Use right arrow key and left arrow key on your keyboard to move right and left respectively.
  • Press the Q key on your keyboard to send a projectile attack at enemies.
  • Press the E key to attack using the weapon.
  • Press the space bar or UP arrow key to jump.
  • Use the down arrow key to duck projectile attacks.
  • The user is allowed to jump twice. Once on the ground and once in mid air.

Features

Some of the features on the game include:

  • Player functions like jumping, projectile attacks and weapon attack.
  • The player is supposed to get as many gems as possible.
  • Enemies include birdman and snaky
  • Snaky enemy has the ability to throw a projectile attack.
  • There are two levels in the game

Project specifications

Potential Future Features

  • Mobile compatibility
  • UI/UX

Technologies Used

  • This project utilizes the Phaser library

Initial Objective

My initial objective(first 2 days) for this project was to get started with the phaser initialization and set up the background tiles for play scene. I ended up using Tiled Map Editor for the same.

Contributors