HTML, CSS, JS
Published on Oct 19, 2021
Hey there! Pong is a two-dimensional sports game that simulates table tennis. The player controls an in-game paddle by moving it vertically across the left or right side of the screen. They can compete against another player controlling a second paddle on the opposing side. Players use the paddles to hit a ball back and forth.
Using three.js I was able to make a 3D version of the game. And combining with GameRunner a minimal framework for creating canvas games. the game was able to provide a 60fps double buffered canvas game loop, allowing the game itself to concentrate on updating its game state whenever the update() method is called and rendering itself every time the draw() method is called.