Skip to content

nodi-andy/pong

Repository files navigation

pong

Simplest vanilla javascript canvas template

Screenshot

single player

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

multiplayer

https://nodejs.org/en/download/

chrome://flags/#allow-insecure-localhost

compile exe

electron-packager ./ pong --platform=win32 --arch=x64

About

Simplest vanilla javascript canvas template

Resources

License

Stars

Watchers

Forks

Packages

No packages published