Play game
Point Clicker pico1k jam's itch.io pageSource Code
function c()
if (btn(5)) then g.p = g.p + 1 sfx(0)
end
end
function is()
if (btn(2)) then g.ps = g.ps + 1
elseif (btn(3)) then g.ps = g.ps - 1
end
end
function upd_ma()
if (btn(4)) and g.ps == 1 and g.p > g.cc then g.cp = g.cp + 1 g.p = g.p - g.cc g.cc = g.cc * 1.2
elseif (btn(4)) and g.ps == 2 and g.p > g.bc then g.bp = g.bp + 1 g.p = g.p - g.bc g.bc = g.bc * 1.2
elseif (btn(4)) and g.ps == 3 and g.p > g.wc then g.w = g.w + 1 g.p = g.p - g.wc
end
end
function _init()
g={}
g.p=0
g.pm=0
g.cp=0
g.bp=0
g.cc=100
g.bc=500
g.w=0
g.wc=10000
g.ps=1end
function _update()
g.p = g.p + g.pm
c()
upd_ma()
u1 = g.cp * 0.2
u2 = g.bp * 0.7
g.pm = u1 + u2
is()end
function _draw()
cls()
print("points "..g.p,12,14,9)
print("pointgain "..g.pm,12,20,9)
print("clicker "..g.cp,12,30,9)
print("perches item "..g.ps,12,8,9)
print("builders "..g.bp,12,37,9)
print("secret 10000 3?",12,60,9)
print("control z to buy x to click ",12,100,9)
if g.w == 1 then print("you win congrates",64,64,9)
end
end
Leave a comment
Log in with itch.io to leave a comment.
Comments
I managed to fit this within 995 bytes and sorry if the item purchase is a little hard to control