Space Trash

Space is full of trash, guide your ship through the garbage fields using your laser to blast away refuse.  Welcome to the future!

Left/Right Arrow - Move

X - Fire

I made this for the #tweettweetjam 2021

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


StatusReleased
PlatformsHTML5, Windows, macOS, Linux
Rating
Rated 3.0 out of 5 stars
(1 total ratings)
AuthorjoeAmerica Gayms
GenreShooter
Made withPICO-8
TagsPICO-8

Download

Download NowName your own price

Click download now to get access to the following files:

Space_Trash.zip 12 MB
spacetrash.p8.png 4 kB

Comments

Log in with itch.io to leave a comment.

Deleted post