Skip to main content

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

AssistView game page

Gravitationally assist yourself across the galaxy
Submitted by fuzzyastrocat — 8 hours, 24 minutes before the deadline
Add to collection

Play game

Assist's itch.io page

How many characters did you use?
560

Include your code here, if you'd like to show it off!
b={}x=96
y=24
j=1
k=0
g=1
for i=0,61,1 do table.insert(b,{math.random(-500,500),math.random(-500,500)}) end
function d(q,w,e,r) return math.sqrt((q-e)*(q-e)+(w-r)*(w-r)) end
function TIC()cls(0)y=y+k
x=x+j
l,m=mouse()rect(118,60,2,2,15)for i,z in pairs(b) do
if d(l,m,z[1]-x+118,z[2]-y+60)<10 then g=i-1 end
if d(x,y,z[1],z[2])<10 then reset()end
if i==g+1 then circ(z[1]-x+118,z[2]-y+60,10,5)j=j+(z[1]-x)/math.pow(d(x,y,z[1],z[2]),2)k=k+(z[2]-y)/math.pow(d(x,y,z[1],z[2]),2)else circ(z[1]-x+118,z[2]-y+60,10,15*(i>1 and 1 or 0)+2*(i<2 and 1 or 0))end
end
end

Leave a comment

Log in with itch.io to leave a comment.

Comments

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

Developer

Nice to know someone likes my stuff!