Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
A jam submission

SupaHex 1kView game page

Entry for the PICO-8 1k Jam 2022, a demake of Super Hexagon
Submitted by WeeblBull β€” 19 days, 23 hours before the deadline
Add to collection

Play game

SupaHex 1k's itch.io page

Compressed 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 ➑️

Link to Commented Source Code (OPTIONAL)
https://www.pico-8-edu.com/?c=AHB4YQdhA-xnv8L9Z7-C8S8Q7UaPcMBDXHLGSyRJc0sSJUlzTBIlSX3HVpK-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03zAT9hCvadslWhhpIwixT3liZrO7w7e7gCdZIEnAKyVbSmaSqhjgiZCYVipBCWdnZ2NI8ERcYmB48YG-J9OiWQls_SzJZGIsnAmZvyosTjlg1ztzIQpwMpDckEx6ofbBgm8mTIp3ibmW-HFgYaW5ql1INg15z8HIVgnqDlkKqmS3JoFGtorwa6ev8pr7NBQwCbaN3apxylNDJ9uTkAWkPL0G6Fht5ItMjR3QW&g=w-w-w-w1HQHw-w2Xw-w3Xw-w2HQH

Leave a comment

Log in with itch.io to leave a comment.

Comments

No one has posted a comment yet