drhayes / burrowdefender

A game prototype in which you play a bunny that can dig and build.
MIT License
1 stars 0 forks source link

Drawing in layers #6

Closed drhayes closed 14 years ago

drhayes commented 14 years ago

Drawing should happen in layers (bg, hud, sprite1, sprite2).

This way, a dug out tile can draw in the background and not possibly overwrite the sprites. There's probably a drawing manager that draws each layer in the order (given above) calling functions passing in the 2d context from the canvas.

Calling draw() and passing in the drawmanager lets whatever it is add drawing functions that take the 2d context for each layer.

drhayes commented 14 years ago

player draws in layers now. Closed by 935dea7b333faf34c71881c2eda41674a6d66738