The scripting thing looks cool. Would it be possible to include the whole sprite sheet pixel data,
or pixel data of separate sprites somehow?
PureBasic has 'IncludeBinary', and for some other systems it would be awesome to include the
data directly into the script.
For example, a language supports the following array definition:
Code: Select all
Field _map:Int[][] = [ [1,2,1,2,1,2,1,2,1,2,1,2,1,2,1],
[2,0,0,0,0,0,0,0,0,0,0,0,0,0,2],
[1,0,2,0,2,0,2,2,2,0,0,0,0,0,1],
[2,0,2,2,2,0,0,2,0,0,0,0,0,0,2],
[1,0,2,0,2,0,2,2,2,0,0,0,0,0,1],
[2,0,0,0,0,0,0,0,0,0,0,0,0,0,2],
[1,0,0,0,0,0,0,0,0,0,0,0,0,0,1],
[2,0,0,0,0,0,0,0,0,0,0,0,0,0,2],
[1,0,0,0,0,0,0,0,0,0,0,0,0,0,1],
[2,1,2,1,2,1,2,1,2,1,2,1,2,1,2] ]
Another language could look like this:
Code: Select all
int _map[sm.SheetHeight][sm.SheetWidth] = {
{1,2,1,2,1,2,1,2,1,2,1,2,1,2,1},
{2,0,0,0,0,0,0,0,0,0,0,0,0,0,2},
{1,0,2,0,2,0,2,2,2,0,0,0,0,0,1},
{2,0,2,2,2,0,0,2,0,0,0,0,0,0,2},
{1,0,2,0,2,0,2,2,2,0,0,0,0,0,1},
{2,0,0,0,0,0,0,0,0,0,0,0,0,0,2},
{1,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
{2,0,0,0,0,0,0,0,0,0,0,0,0,0,2},
{1,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
{2,1,2,1,2,1,2,1,2,1,2,1,2,1,2}
};
Imagine a language that looks like this:
Code: Select all
DataSection
_map:
Data.l 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1
Data.l 2,0,0,0,0,0,0,0,0,0,0,0,0,0,2
Data.l 1,0,2,0,2,0,2,2,2,0,0,0,0,0,1
Data.l 2,0,2,2,2,0,0,2,0,0,0,0,0,0,2
Data.l 1,0,2,0,2,0,2,2,2,0,0,0,0,0,1
Data.l 2,0,0,0,0,0,0,0,0,0,0,0,0,0,2
Data.l 1,0,0,0,0,0,0,0,0,0,0,0,0,0,1
Data.l 2,0,0,0,0,0,0,0,0,0,0,0,0,0,2
Data.l 1,0,0,0,0,0,0,0,0,0,0,0,0,0,1
Data.l 2,1,2,1,2,1,2,1,2,1,2,1,2,1,2
EndDataSection
(the values are map data in the examples above, it would be pixel/color/alpha data in SpriteMonkey)
It would be just awesome if you could enhance the scripting language to support this,
because it would be very flexible and powerful.
sm.ColorAt(x,y) / sm.R(x,y) / sm.G(x,y) / sm.B(x,y) / sm.Alpha(x,y) / sm.NextValue() combined with sm.For .. sm.Next loops or something like that.