sfoster/jackdaw — Issue #1: Prototype renderer
Author: sfoster
Created: 2011-10-31 20:39:51+00:00
State: open

The idea is the game object (instanceof engine.Engine) will have a .renderer property. Or maybe a .render() / rerender() methods? We'll do an initial optional rendering of every scene (draw the map etc), and re-render each tick of the game loop.

The renderer does the job of taking sprite, position, x/y/width/height data and making it visible on the game surface/canvas/stage.

We initially looking at rendering to a canvas 2d context, but there's no reason we can't also have DOM renderers, ascii-art

renderers, whatever.