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

GravTView game page

A small gravity simulator
Submitted by fuzzyastrocat — 1 day, 12 hours before the deadline
Add to collection

Play Sim

GravT's itch.io page

How many characters did you use?
559

Include your code here, if you'd like to show it off!
x=0
y=0
o=0
p=0
z=0
c={0,0}s={}for i=0,10,1 do table.insert(s,{math.random(-300,300),math.random(-300,300)})end
for l,b in pairs(s) do circ(b[1],b[2],40,15)end
while pix(x,y)>0 do x=x+9 end
function TIC()cls(0)if btn(4)then o=o*1.02 p=p*1.02 end
c={c[1]+(x-c[1]-120)/10,c[2]+(y-c[2]-60)/10}rect(x-c[1],y-c[2],2,2,15)for l,b in pairs(s)do
k=b[1]-x
l=b[2]-y
function d()return math.sqrt(k*k+l*l)end
if d()<40 and z<1 then o=-o p=-p z=1 else z=0 end
circ(b[1]-c[1],b[2]-c[2],40,15)o=o+k/d()/d()p=p+l/d()/d()end
x=x+o y=y+p if btn(5)then o=o*0.94 p=p*0.94 end
end

Leave a comment

Log in with itch.io to leave a comment.

Comments

Interesting toy. I included it in my TweetTweetJam 2 compilation video series, if you’d like to take a look. :)

DeveloperSubmitted

Glad you enjoyed it!  Great compilation, too!

DeveloperSubmitted

Yes, you were stuck inside a planet.  It's a known bug... but being restricted on characters I couldn't fix it.  Restarting the game fixes the problem.