kittykatattack / ga

The world's tiniest, cutest and funnest game engine
451 stars 85 forks source link

Rendering own entities #64

Open cawoodm opened 6 years ago

cawoodm commented 6 years ago

Many games require special entities (like backgrounds) which are proceduraly generated and rendered. How does one render one's own graphics to the canvas with Ga? I think there needs to be some (layered) way of hooking into ga.render() for the engine to allow this. Indeed, apropos layers, Ga does not seem to care which sprites are at which layer when rendering.