Coder Social home page Coder Social logo

pacman's Introduction

Hacman

Hacman

Introduction

Week 9 at Makers Academy involved a mini group project that lasted 3 days. The goal of our group's project was to produce a multiplayer pacman game, where people could instantly join and play a version of Pacman. The original decision was to produce the game using a Node.js server for back-end javascript, and the Angular framework to handle the entire front end. By the end of the 3 days, we had two working versions of the game, the original Angular idea, and a combo HTML5 Canvas/Node.js one.

Languages/Platforms/Tools

  • Node.js
  • Angular
  • HTML5
  • Socket.io
  • Mocha
  • Express
  • jQuery
  • Heroku

Learning Outcomes

The original Angular version of the game progressed quite well in the beginning, however we realised by day two that it would likely to be slow to handle the player load that we were expecting in pacman. Due to the way we had designed the code, there was a large amount of page elements being reloaded upon every pacman 'move', leading to sloppy game performance. Therefore, we decided to try our hand at making a version using HTML5 Canvas to render the pacman, dots, and maze. Combined with Node.js and websockets, this lead to much faster version, and also allowed us to achieve the multiplayer feature that we originally planned.

To-do List

  • Improve game logic. Currently there is no method for winning the game.
  • Improve collsion detection. There are instances where pacman can slightly intersect with maze wall
  • Re-write the canvas code to only re-render necesary parts of the maze (rather than entire maze)
  • Add Ghost A.I.

Collaborators

Andrew Snead - (http://www.github.com/snozza) Pablo Portabales = (http://www.github.com/galicians) Sandrine Zhang Ferron = (http://www.github.com/MadameSardine) Denise Yu = (http://www.github.com/deniseyu)

Instructions

The live version of the site is available at http://hacman.herokuapp.com/.

Clone the repository:

$ git clone [email protected]:snozza/pacman.git

Change into the directory and npm install the modules:

$ cd pacman
$ npm install

Run the tests:

$ mocha

Start the node server and visit http://localhost:8080/

$ node app.js

pacman's People

Contributors

snozza avatar madamesardine avatar

Watchers

James Cloos avatar Alex Davis avatar

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.