init
This commit is contained in:
17
choco.lua
Normal file
17
choco.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
function _init()
|
||||
-- always start on white
|
||||
col = 7
|
||||
end
|
||||
|
||||
function _update()
|
||||
-- press x for a random colour
|
||||
if (btnp(5)) col = 8 + rnd(8)
|
||||
end
|
||||
|
||||
function _draw()
|
||||
cls(1)
|
||||
circfill(64,64,32,col)
|
||||
spr(1,64,64, 2,2)
|
||||
end
|
||||
|
||||
19
choco.p8
Normal file
19
choco.p8
Normal file
@@ -0,0 +1,19 @@
|
||||
pico-8 cartridge // http://www.pico-8.com
|
||||
version 43
|
||||
__lua__
|
||||
#include choco.lua
|
||||
|
||||
__gfx__
|
||||
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000007700000077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00700700007700000077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00077000007c0000007c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00077000007700000077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000000000880000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000000088888800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000000008888000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
Reference in New Issue
Block a user