Skip to content

PONG GAME - Web-Based Game: Use ES6 JavaScript with OOP to move paddles on up/down, a/z keypress for two different players, initialize the ball in the middle at start and after a goal, reverse its direction when touch a paddle or reach a wall, track and display user score. Use SVG for the game drawings and HTML5 Audio sounds triggers

HaninMustafa/Pong-Game

Repository files navigation

Pong Game

A basic pong game using HTML5 Canvas, ES2015, SASS and Webpack build tool.

Setup

Install

> npm i

Run

> npm start

Keys

Player 1:
  • a: up
  • z: down
  • q: fire a new ball
Player 2:
  • ▲ : up
  • ▼: down
  • /: fire a new ball

##Summery

The Pong Game is my third project in Red Academy.we used Javascript's ES2016 syntax. This project was a great opportunity to practice the classes in ES2016 and the object oriented programming style.

This project opened my eyes on how to think like a computer and think of every possible move.

About

PONG GAME - Web-Based Game: Use ES6 JavaScript with OOP to move paddles on up/down, a/z keypress for two different players, initialize the ball in the middle at start and after a goal, reverse its direction when touch a paddle or reach a wall, track and display user score. Use SVG for the game drawings and HTML5 Audio sounds triggers

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published