Skip to main content

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

Gravitron | Tweet Tweet JamView game page

Remake of Gravitron.
Submitted by n0ba — 9 days, 21 hours before the deadline

Play game

Gravitron | Tweet Tweet Jam's itch.io page

How many characters of code did you use?
544

Include your code here, if you'd like to show it off!
px,py,pf,d,si,e,c,gm,sc=64,64,0,1,1,{},0,0,0
function _draw()if gm==0then
cls()b=btn()+1b%=3b-=1for i=0,1do
l=40+40*i
line(0,l,128,l,6)end
print("웃",px,py,7)
py+=d*si
si+=0.005py,pha=mid(39,py,81),abs(d*si)/1.5if(py>76)d=-1sc+=1
if(py<40)d=1sc+=1
if(b==1)px-=pha
if(b==-1)px+=pha
print(sc,0,0)for i in all(e)do
ix=i.x
print("✽",ix,i.y,8)i.x+=cos(i.a)*pha/2
if(px>ix-5and px<ix+5and py>i.y-5and py<i.y+5)gm=1
end
c-=1if c<=0 then
c,ex=70,rnd{0,128}
if(ex==128)ea=0.5else ea=0
add(e,{x=ex,y=rnd{45,75},a=ea})
end else print("u ded",64,64)end end

Leave a comment

Log in with itch.io to leave a comment.

Comments

Submitted

The game didn't load for me on Mac Safari or Chrome. Thought you might like to know ❤️