derekmiranda / williwaw

HTML5 Canvas/TypeScript version of Tempest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Williwaw

A sort-of remake of the 1981 Atari game, Tempest.

Current version here

Dev Notes

  • 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 (like localMoveTo or localLineTo) to ensure canvas drawing that's relative to its entire object hierarchy
  • when writing classes extending BaseGameObject, write render and update functions. These are called internally with the BaseGameObject's _render and _update functions
  • z - indicates depth from near (z = 0) to far (z = 1) plane

Possible Polyfills to Fill

  • Promises
  • Map
  • Object.assign

About

HTML5 Canvas/TypeScript version of Tempest


Languages

Language:TypeScript 97.4%Language:HTML 1.3%Language:CSS 1.1%Language:JavaScript 0.1%