Skip to content
This repository has been archived by the owner on Jun 12, 2020. It is now read-only.
/ canvas Public archive

My scratchbuilt game framework, some basic physics, and a playable asteroids game.

Notifications You must be signed in to change notification settings

mattpage/canvas

Repository files navigation

canvas

My scratchbuilt game framework, some basic physics, and some interesting demos.

  • Useful Canvas and Game abstractions
  • Multi-channel audio support
  • Mouse and Keyboard support
  • Physics - constraints, collision detection, vectors, etc
  • Particles - the beginning of a particle system

Demos

  • Basic - Draws multiple color rectangles on the screen. Demonstrates mouse interaction.
  • Balls - Balls bouncing about in a constraining box. Demonstrates mouse interaction, double buffering, and Physics (constraints + deflection).
  • Asteroids - A playable version of the classic 1979 space shooter. Full featured demo of Physics (w/Spatial Partitioning), Keyboard, double buffering, and Audio.
  • Particles - A fountain of confetti-like particles.
  • Attract - Particles are attracted to and swarm the mouse cursor.

scripts

run the demo(s)

npm start

run the tests

npm test

generate test coverage report

npm run coverage
open coverage/lcov-report/index.html

resources

About

My scratchbuilt game framework, some basic physics, and a playable asteroids game.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published