This is a re-creation of the classic Pong game using JavaScript and SVGs to render the board, paddles, ball, and scores.
Install dependencies.
npm i
Run locally with Webpack Dev Server.
npm start
Build for production.
npm run build
Player 1:
- a: up
- z: down
Player 2:
- ▲: up
- ▼: down
- HTML
- CSS
- JavaScript
- Webpack
- SVG
This is a project produced from the following lessons from Week 5:
- Advanced JavaScript
- Intro to ES.next
- Developing with ES.next and Webpack
- Object Oriented Programming in JS
- OOP with ES.next
- Building a Pong Game
Below are the subsequent learning outcomes.
- == (loose)
- === (strict, checks for typeOf)
switch(expression) {
case x:
code block
break;
case y:
code block
break;
default:
code block
}
- Shorter syntax for function expressions and they are not hoisted.
const x = (x, y) => {
return x * y;
};
Jen Lam, Full-Stack Developer student at RED Academy.
Let's connect on LinkedIn.