Play game
SupaHex 1k's itch.io pageCompressed Bytes used
1020
Source Code (OPTIONAL)
function tr(x0,y0,x1,y1,x2,y2,c)
color(c)
if(y1<y0)x0,x1,y0,y1=x1,x0,y1,y0
if(y2<y0)x0,x2,y0,y2=x2,x0,y2,y0
if(y2<y1)x1,x2,y1,y2=x2,x1,y2,y1
col=x0+(x2-x0)/(y2-y0)*(y1-y0)
tp(x0,x0,x1,col,y0,y1)
tp(x1,col,x2,x2,y1,y2)
end
function tp(l,r,lt,rt,y0,y1)
lt,rt=(lt-l)/(y1-y0),(rt-r)/(y1-y0)
if(y0<0)l,r,y0=l-y0*lt,r-y0*rt,0
y1=min(y1,128)
for y0=y0,y1 do
rectfill(l,y0,r,y0)
l+=lt
r+=rt
end
end
cartdata("1kshx")
::β‘οΈ::
π±,β
,β§,bg,c,f,gc,gs,hi,hx,t,ts,x=cos,sin,tostr,flr(rnd(6))*2+1,64,0,0,0,dget(1),0.166,0,time(),0_set_fps(60)
?"\^!5f1075βkββ1β8πlπ
ΎοΈβ"
w={}
for i=1,3 do
w[i]={}w[i][1]=(i+3)*64
w[i][2]=1<<ceil(rnd(5))
end
::_::
flip()cls(bg)
gc,gs=π±(f),β
(f)
b=btn()x-=b\2%2*.02-b%2*.02
p,q=c+π±(x+f)*16,c+β
(x+f)*16
for h=0,5 do
l=((h-1)+6)%6
nx,ny=c+π±(f+h*hx)*10,c+β
(f+h*hx)*10
if h%2==0 then
tr(nx,ny,c+π±(f+h*hx)*120,c+β
(f+h*hx)*120,c+π±(f+l*hx)*120,c+β
(f+l*hx)*120,bg+1)
tr(c+π±(f+l*hx)*10,c+β
(f+l*hx)*10,nx,ny,c+π±(f+l*hx)*120,c+β
(f+l*hx)*120,bg+1)
end
line(nx,ny,lx,ly,0)lx,ly=nx,ny
end
for wi=1,3 do
w1,w2=w[wi][1],w[wi][2]
if w1<=10 then
l=((wi+1)%3)+1
w1=w[l][1]+40+rnd(32)
w[wi][2]=1<<ceil(rnd(5))
end
w[wi][1]=max(w1)-1
m=1
for h=1,6 do
if m&w2==0 then
tr(c+π±(f+h*hx)*w1,c+β
(f+h*hx)*w1,c+π±(f+(h+1)*hx)*w1,c+β
(f+(h+1)*hx)*w1,c+π±(f+(h+1)*hx)*(w1*1.1),c+β
(f+(h+1)*hx)*(w1*1.1))
tr(c+π±(f+h*hx)*w1,c+β
(f+h*hx)*w1,c+π±(f+(h+1)*hx)*(w1*1.1),c+β
(f+(h+1)*hx)*(w1*1.1),c+π±(f+h*hx)*(w1*1.1),c+β
(f+h*hx)*(w1*1.1))
end
m=m<<1
end
end
if(pget(p+π±(x+f)*3,q+β
(x+f)*3)==0)bg=nil
tr(p+π±(x+f)*3,q+β
(x+f)*3,p+π±(x+f+.33)*3,q+β
(x+f+.33)*3,p+π±(x+f+.66)*3,q+β
(x+f+.66)*3,0)
f=π±(t*0.05)
t=time()-ts
sa,sb=β§(flr(t)),sub(β§(t%1),2,4)
?"\^w\^t\^#"..sa,2,2,6
?"\^#"..sb,#sa*10-1,8,6
?"\^#hi:"..hi,128-(#β§(hi)+3)*4,1,6
if(t%.5==0)?"\ax3c0"
if(t%.5==.25)?"\ax3v2f2"
if(bg)goto _
?"\as4x54cgec3gec2gec"
?"\^d3\^w\^t\^#game over",32,44,6
if(t>hi)dset(1,t)?"\^d1\^#hi score!",48,64,6
?"β",64,72,6
while btn()==0do end
goto β‘οΈ
Leave a comment
Log in with itch.io to leave a comment.
Comments
No one has posted a comment yet