cwood821 / pong-clone

A clone of Pong with pure ES6 and HTML canvas

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pong Clone!

Play Pong Clone

Play Pong Clone

For an AI game, use the WASD keys for movement. In local multiplayer, Player 1 uses the WASD keys, Player 2 the arrow keys.

Screenshot of Diagram

Architecture

This diagram illustrates the basic relationships between game classes. Not all class data are represented here.

Screenshot of Diagram

In essence, the GameWorld is composed of Actors. Actors have sprite representations in the world. On each animation frame, the GameWorld class calls the update functionality of each Actor added to the world and handles collisions between actors.

Credit

The live game uses sounds from Free Sound under Creative Commons licensing:

The background space image is from Kyle Devaras via Unsplash.

About

A clone of Pong with pure ES6 and HTML canvas


Languages

Language:JavaScript 88.4%Language:HTML 7.9%Language:CSS 3.8%