foxygit / fake-08-xbox360 Log in
main xbox360 commits tags

/test/carts/arithmetictest.p8 · 1.2 KB

raw
pico-8 cartridge // http://www.pico-8.com
version 29
__lua__
frames = 0
tbl = { 1, 2, 3, 4}
function _update()
 firstrand = rnd()
 frames+=1
 result = frames * 10
 result2 = frames / 5
 result3 = 5.6 - 2
 srand(10)
 result4 = rnd()
 result5 = rnd(100)

 tblcount = #tbl
 rndcount = rnd(tblcount)
 ceilcount = ceil(rndcount)
end

function _draw()
 cls()
 print(frames)
 print(result)
 print(result2)
 print(result3)
 print(result4)
 print(result5)
end
__gfx__
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000