• Stars
    star
    229
  • Rank 174,666 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 6 years ago
  • Updated almost 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Classic 8 Ball pool game written in JavaScript

Classic-Pool-Game

Β© Chen Shmilovich - 2018.

A Typescript remake is now available here.
Same functionality with better and more readable code.


Hello everyone!

The presented code is my first shot at building a javascript game.
It is a classic 8-ball pool game. You can choose to play against a friend, or against an AI, with various difficulty levels.

Have fun, and good luck!

Keys:

* 'W' : Increase shot power.
* 'S' : Decrease shot power.
* 'Esc' : Return to main menu.

Mouse:

* Left click : shoot.
* Aim by moving the mouse.

Demo:

https://henshmi.github.io/Classic-Pool-Game/

Screenshots:

Credits:

* Building JavaScript Games by Arjan Egges (Apress, 2014):
https://github.com/apress/building-javascript-games
* LAB.js :
https://github.com/getify/LABjs
* Music :
Bossa Antigua Kevin MacLeod (incompetech.com)
Licensed under Creative Commons: By Attribution 3.0 License
http://creativecommons.org/licenses/by/3.0/