Make the toroidal aspect of ScrollMaps optional
MicroLua brings Lua on the Nintendo DS for easy programming
Brought to you by:
reylak
The ScrollMaps are currently toroidal, that is to say they render forever in any direction. For instance, when you reach the right-hand edge, the left-hand edge is also displayed as in an infinite loop.
We wish to make this characteristic optional at the creation of a ScrollMap:
-- toroidal is a boolean ScrollMap ScrollMap.new(image, mapFile, with, height, tileWidth, tileHeight, toroidal)
Original idea from Ghuntar.
Anonymous
Diff: