Skip to main content

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

Space TrashView game page

Space is dangerous and full of trash
Submitted by joeAmerica Gayms (@joeamericagaym) — 3 days, 14 hours before the deadline
Add to collection

Play game

Space Trash's itch.io page

How many characters of code did you use?
556

Include your code here, if you'd like to show it off!
u=64f={}o={}s=0a={}l=5
function _draw()i=rnd(127)if l>-1then
cls()print(s,9)print("🅾️:"..l,11)add(f,{x=i,y=127})for t in all(f)do
pset(t.x,t.y,7)t.y-=2if(t.y<0)del(t,f)end
if(btn(0)and u>0)u-=1
if(btn(1)and u<120)u+=1
if(btnp(5))add(o,{x=u+3,y=32})
print("🅾️",u,30,13)s+=1add(a,{x=i,y=rnd(127)+127})for r in all(a)do
print("◆",r.x,r.y,rnd(15)+7)r.y-=3
if(r.y+1<34and r.y+4>30and u<r.x+5and r.x<u+6)circ(u+3,32,5)del(a,r)l-=1
if(r.y<0)del(a,r)
for b in all(o)do
pset(b.x,b.y,8)b.y+=1
if(r.y+1<b.y and b.x<r.x+5and r.x<b.x)s+=25del(a,r)del(o,b)end end end end

Leave a comment

Log in with itch.io to leave a comment.

Comments

No one has posted a comment yet