Skip to content

AlfonsoGhislieri/wormz

 
 

Repository files navigation

Visits Badge Created Badge Heroku

Created By

Alfonso Ghislieri | Chris Clement | Chris Thomas | Giorgi Gutsaevi | Kim Morgan | Riky Moroni

About the Project

This is our 2D game made for our final project at Makers.

Created from start to finish in 2 weeks using JavaScript, p5, Matter.js, Express, Node, HTML, CSS.

p5 is a JavaScript library with a focus on creative coding. This allowed us to display our game, have music and render images in a flexible manner.

Matter.js is a JavaScript physics engine library that allowed our worms, bullets and terrain to have physical bodies with mass, velocity, collisions, friction and gravity. This gave our worms life rather than just being images on a screen.

Play Online

https://wormz.herokuapp.com

Getting Started Locally

Prerequisites

npm install -g npm

Installation

  1. Make sure preqrequisites are installed
  2. Clone the repo
git clone https://github.com/Riky5/wormz.git
  1. cd into the directory
cd wormz
  1. Install NPM packages
npm install
  1. Run the bundler
npm run build
  1. Run the server
npm start
  1. Visit the locally hosted website
http://localhost:3000/

What you should see

homePage

Testing

Tests use chai 🫖 and mocha ☕️

npm test

Usage

Option Page

Click ON or OFF to start or stop background music and sound effects. 🔈 🔇

optionScreen

Instruction Page

This is an overview of how to play the game.

instructionPage

Playing the Game

Nav Bar

This displays the following:

  • Which Player's turn it is.

  • Active weapon with relevant image shown.

  • Weapon choices. To be selected using keypad.

  • Time left on a Player's turn.

  • Moves left on a Player's turn.

navBar

Gameplay

Move using Left or Right arrow keys, jump using Up. 🕹

Aim using the mouse, click to shoot! 💥

Details are in the instructions page.

wormMoving

Winning or Losing a game

A Player wins when the other Player dies.

A Player dies when their HP goes to 0.

This can be from getting hit by enough bullets or falling in the lava. 🔥

WormHit

WormInLava

Acknowledgements

Sounds thanks to 101 Soundboards, ZapSplat and SoundImage 🎶🎵

Thanks and hope you enjoy the game! 🪱

About

2d game inspired by Team17's Worms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.1%
  • CSS 3.6%
  • HTML 3.3%