https://github.com/anthonyray/pong
Simple pong game in Javascript
https://github.com/anthonyray/pong
Last synced: 11 months ago
JSON representation
Simple pong game in Javascript
- Host: GitHub
- URL: https://github.com/anthonyray/pong
- Owner: anthonyray
- Created: 2014-03-08T20:00:54.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-03-08T20:03:36.000Z (over 12 years ago)
- Last Synced: 2024-04-15T09:15:24.256Z (about 2 years ago)
- Language: JavaScript
- Homepage:
- Size: 113 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### PONG
This is the first game I developped thanks to the GreatCodeClub !
### How to browse the code
Here are the files you should take a look at, in logical order:
1. `game.html` is the page containing the `` we render the game on.
2. `game.js` is the game engine, mainly the game loop.
3. `pong.js` initializes the game and the entities.
4. `entity.js` contains the base class for all game entities.
5. `ball.js` is the ball entity. Boing!
6. `paddles.js` is the logic for the player and computer controlled paddles.