Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pico-8 cartridge // http://www.pico-8.com
- version 16
- __lua__
- function _init()
- p={}
- p.x=20
- p.y=15
- end
- function drawbck()
- rectfill(0,0,127,127,12)
- map(0,0,0,0)
- end
- function solid(x,y,dr)
- local tilex=((x-(x%8))/8)
- local tiley=((y-(y%8))/8)
- local xm8=x-8
- local ym8=y-8
- if fget(mget(tilex,tiley),0)==false then
- return false
- else
- return true
- end
- end
- function debug()
- print(solid(p.x,p.y,0),0,0,7)
- print(((p.x-(p.x%8))/8),0,6,7)
- print(((p.y-(p.y%8))/8),0,12,7)
- end
- function _update()
- if btn(0) then
- if solid(p.x-1,p.y,0)==false then
- p.x-=1
- end
- end
- if btn(1) then
- p.x+=1
- end
- if btn(2) then
- p.y-=1
- end
- if btn(3) then
- p.y+=1
- end
- end
- function _draw()
- drawbck()
- spr(1,p.x,p.y)
- debug()
- end
- __gfx__
- 00000000077777770000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 00000000577707070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 00700700577707070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 00077000577777770000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 00077000577777770000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 00700700570000070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 00000000577777770000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 00000000555555500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002eeeeeef
- 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001222222e
- 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001222222e
- 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001222222e
- 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001222222e
- 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001222222e
- 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001222222e
- 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111112
- 00990000666166660000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 00440000555155550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 99aa9900555155550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 99aa9900111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 00993000166666660000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 00440300155555550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 00000300155555550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 00000300111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- __gff__
- 0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- __map__
- 1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 1f0000000000002f0c0000000000001f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 1f0000200000002f0c0000000000001f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 1f00001f0000002f000000000000001f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 1f00001f0000002f00001f000000001f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 1f00001f1f1f1f1f00001f000020001f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 1f0000000000000000000000001f1f1f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 1f00000000000000000000000000001f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 1f00000000200000000000000000001f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 1f000000001f1f1f1f1f1f1f1f1f1f1f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 1f000000000000001f2121212121211f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 1f000000000000001f2121212121211f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 1f00000000000000212121212121211f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 1f00000000000000212121212121211f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 1f00000000000000212121212121211f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- __sfx__
- 000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- 00020000256202f620346203460033600336000f6500f6200c000000000c000000000c000000000c000000000c000000001000000000110000000010000000000c000000000c0000000010000000000c00000000
- __music__
- 00 01424344
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement