Add ImageSheet system
MicroLua brings Lua on the Nintendo DS for easy programming
Brought to you by:
reylak
We plan to change the way Sprites are created (more than [#7]): instead of giving them an image, we give a table of frames called a SpriteSheet.
Quoting Lolman (Jacen.Guardian):
I think what follows:
Instead of making two constructors, we only make one that is able to handle both calls (by checking the types of its arguments).
Anonymous
Modification: this system should be generic and could be used for Maps too.
We would have a function to load and split the image file, then we can create a new Sprite or Map from it.