This repository contains a proof-of-concept hockey game developed using Matter.js, a 2D physics engine for the web, along with Matter-attractors, a plugin to add gravitational attraction and repulsion forces to Matter.js bodies.
git pull git@github.com:evanmeeks/centrifugal-force-table-hockey.git && cd centrifugal-force-table-hockey && npm run start
- Use the arrow keys to move the paddles.
- Score goals by hitting the puck into the opposing goal.
- The first player to score 5 goals wins the match.
- To magnetize the puck to the paddle, hold the down arrow key.
- Matter.js - The physics engine powering the game dynamics.
- Matter-attractors - Used to simulate attractive forces in the game.
If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.
This project is licensed under the MIT License - see the LICENSE.md file for details.
- Liam Brummitt for creating Matter.js and the Matter-attractors plugin.