Text tile map demo attached, 8 parallax layers... pretty interesting, I think it has potential
Like, this is all the code that it needs to handle displaying the tilemap layers:
SetDisplayAspect( 4.0/3.0 )
SetVirtualResolution(256,240)
SetSyncRate(0,0)
setclearcolor(92,148,252)
LoadImage ( 1, "mariotileset.png" )
SetImageMinFilter(1,0)
SetImageMagFilter(1,0)
global layers=8
for t=1 to layers
t$=""
for y=0 to 14
for x=0 to 99
if random(1,y+5)>y
t$=t$+chr(random(32,174))
else
t$=t$+chr(174)
endif
next x
t$=t$+chr(10)
next y
CreateText ( t, t$ )
SetTextFontImage ( t, 1 )
SetTextExtendedFontImage( t,1 )
SetTextSize(t,16)
SetTextSpacing(t,0.0)
SetTextMaxWidth(t,5000)
SetTextDepth(t,10+(t*2))
col#=(t-1)/4.0
SetTextColor(t,255-(col#*163),255-(col#*107),255,255)
next t
do
scrollx#=getrawmousex()
scrolly#=getrawmousey()
for t=1 to layers
settextposition(t,scrollx#*-10.0,0.0)
scrollx#=scrollx#*0.75
next t
print(str(1500*layers)+" Tiles @ "+str(screenfps()))
Sync()
loop
Maybe someone can come at it with sprites, see if they can display the same any quicker.
It can support up to 224 tiles per text object, like a tile sheet of 15x15 - which is really not too bad of a limitation. Of course, the tiles could be adjusted just like with text, rotated, coloured etc etc - maybe properly animated things would be better as sprites though, might be slow to change a tile unfortunately.
I am the one who knocks...