Skip to content

BibekShah09/javascript-pool-2015

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎱 2D Pool - 2015

A classic 2-player 2D pool game built entirely in pure JavaScript in 2015. No external libraries—just core browser APIs!

Key Features: Pure JavaScript Implementation: Leveraging only browser-provided APIs: DOM Manipulation: document.getElementById, document.getElementsByClassName, document.createElement, document.getElementsByTagName Event Handling: document.attachEvent, document.addEventListener Timed Actions: setTimeout, clearTimeout

Setup

Clone the Repo & open the file index.html in your browser.

Demo

A live Demo is available.

Preview

game-preview1


game-preview2

APIs Involved

  • document.getElementById
  • document.getElementsByClassName
  • document.createElement
  • document.attachEvent
  • document.addEventListener
  • document.getElementsByTagName
  • setTimeOut
  • clearTimeOut

Computation Based On

  • Collision detection
  • Velocity & Vector computation
  • Rotation & Reflection
  • Distance computation
  • Momentum
  • Principle of Energy Conservation

Author

Bibek Shah

License

MIT

About

2 players 2D pool game built using JavaScript. Browser provided APIs are used with no external libraries involved.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages