A sort-of remake of the 1981 Atari game, Tempest.
- coordinates are relative to a unit square centerd at 0 since wanted to render in a scalable square canvas. So x and y range from [-0.5, 0.5]
- when defining shape geometry in
render
functions, use "local" canvas methods (likelocalMoveTo
orlocalLineTo
) to ensure canvas drawing that's relative to its entire object hierarchy - when writing classes extending
BaseGameObject
, writerender
andupdate
functions. These are called internally with theBaseGameObject
's_render
and_update
functions - z - indicates depth from near (z = 0) to far (z = 1) plane
- Promises
- Map
Object.assign