Skip to content
Switch branches/tags
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

pong-3D (09-2015)

A simple game of Pong using the 3D graphics wrapper library Three.js (WebGL)

This game utilyzes the basic components of the Three.js library: sounds effects, cubes, planes, spheres, & 3Dtext. It has the various geometries and textures that go with those 3D objects.

The AI player in this game has an slightly faster speed than that of the human player (to make it more challenging). It tracks the ball's x-coordinate and tries to match its own x-coordinate to it, limited by the above mentioned speed limit.

A variety of angles are implemented based on where along the paddle the ball connects. This uses a rudimentary form of collision detection using global position of all the objects rather than sending messages from one objects to another.

The sound effects were found at and haven't been altered. They are all covered under the Attribution 3.0 license.
1.mp3 ===
2.mp3 ===
3.mp3 ===
4.mp3 ===
applause1.mp3 ===
applause2.mp3 ===
applause3.mp3 ===

Each score is updated again by the same collision detection, but with the caveat that there is no collision with the paddle. Each point awarded to the player also decreases the player's paddle speed marginally (to create more of a challenge).

Tested and functions in latest versions of the following desktop browsers: Chrome (graphically the best), Firefox, Safari, and IE11.


(Complete) A simple game of Pong using the 3D graphics wrapper library Three.js (WebGL)



No releases published


No packages published