Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import "chars"
- import "stringUtil"
- clear
- display(4).mode = displayMode.tile
- td = display(4)
- td.tileSet = file.loadImage("/sys/pics/Block.png")
- td.tileSetTileSize = [td.tileSet.width, td.tileSet.height]
- td.cellSize = [64,32]
- td.extent = [12,10]
- td.scrollY = -32
- td.clear 0
- text.row = 0
- print "Press {left} and {right} to change the offset.".fill(chars), ""
- while true
- text.row = 15; text.column = 10
- print "td.oddRowOffset: " + round(td.oddRowOffset, 2) + " "
- k = key.get.code
- if k == 27 then break
- if k == 17 then
- td.oddRowOffset -= 0.1
- else if k == 18 then
- td.oddRowOffset += 0.1
- end if
- end while
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement