Hi - I'm trying to figure out a way to draw on the background instead of laying down individual sprite objects.
Right now I'm working on a terrain generator. It makes heavy use of arrays and subdivision to create a random terrain and then provides a menu so you can alter it, but each pixel/block is a full sprite object, which chews up the performance really fast - especially on phones, which is sort of what this is intended for.
(currently only new terrain/alter terrain work)
I know there has to be a better way to do this, but I'm not having any luck finding it. Any thoughts?
Have you had a look at the Canvas plugin?
It provides a number of methods to let you draw shapes, etc. If all you need is to be able to draw on the canvas, I imagine it'll work.
By the way, I like what you've done with the terrain generation thus far. Looks like it'll make for something very interesting.
Develop games in your browser. Powerful, performant & highly capable.
This looks excellent, thanks!