Simplest vanilla javascript canvas template
Play the game here using github.io
- canvas as html element
- style of html elements
- id of html items
- javascript in html
- grab html objects in javascript
- create variable
- create object
- change object variables
- assign events to functions
- start and keep rendering
- draw the scene
- move the ball
- move the racket
- hit the ball
- game over
https://nodejs.org/en/download/
chrome://flags/#allow-insecure-localhost
electron-packager ./ pong --platform=win32 --arch=x64