Quote:
Originally Posted by zokemon
My god, seriously? You know how long I've been trying to get that?
Just an idea though, I think it would be better if you had like layer[i].tilelayers[x] instead. By default, layer[0].tilelayercount would be 1 and layer[i].tilelayercount for all other i except 1 would be equal to 0.
<snip>
For backwards compatibility, the level.tilelayers array would just be a reference to level.layer[0].tilelayers.
Make sense?
|
No, Stefan's way is better.
The tilelayer already has alpha, red, green, and blue variables, so adding layer would fit right in.
The layer variable also doesn't work the way you're making it look in your example.
Quote:
Originally Posted by zokemon
I mean, it would be pretty wierd to have tilelayers[0] at layer 0, tilelayers[1] at layer 3 and tilelayers[2] at layer 1, you know?
|
Its not like you're going to be able to tell, so don't worry about how other people do it.