Skip to content

Real time game, built using Phaser during the Makerthon week at Makers Academy

Notifications You must be signed in to change notification settings

matteomanzo-zz/PigPong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Climate Test Coverage

What is this?

This is a project for the Makerthon week (week 8 at Makers Academy). We decided to build a realtime game, where you are a farmer and you have to avoid the zombie pigs bouncing around.

NAME_OF_IMAGE

##Technologies

Front End Game Physics Server Testing
JavaScript Phaser NodeJS CucumberJS
HTML & CSS Express
jQuery

How to run it

Clone the repository

SSH:
$ git clone [email protected]:matteomanzo/PigPong.git
HTTPS:
$ git clone https://github.com/matteomanzo/PigPong.git

Change into the directory

$ cd PigPong

Install the NodeJS dependencies

$ npm install

Run all the tests

$ make all

Run it locally using node server.js, then visit http://localhost:9999.

Favourite Code Snippet

var game = new Phaser.Game(700, 400, Phaser.AUTO, 'game-mainpage', { preload: preload, create: create, update: update, render: render });

game.physics.startSystem(Phaser.Physics.ARCADE);

group = game.add.group();
group.enableBody = true;  
group.physicsBodyType = Phaser.Physics.ARCADE;
game.time.events.loop(5000, createBall, this);

This is the part of code where we initialise the game and define how big our canvas will be. Choose what physics to use and enable the body of the object to collide with other objects.

Job List

  • Character can be hit by the ball
  • Multiple balls gets generated after a certain amount of time
  • Can register the Highscore

Still to complete/refactor

  • Web Sockets for multiplayer game
  • Character can shoot
  • Game tests
  • Phisycs to be improved, bird view

Takeaway

Being able to understand and use new technologies like Phaser, and spent a lot of time designing how to implement the app before we wrote a single line of code.

Collaborators

About

Real time game, built using Phaser during the Makerthon week at Makers Academy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •