A jam submission

# Earth Shield 20XXView game page

Defend the (square) earth from incoming missiles with your shield!
Submitted by spectralflux — 23 days, 20 hours before the deadline

## Play game

Characters/Bytes used
972

Source Code
r=rectfill
e=pset
s={}c=0l=0o=1n=30h=10p=0a={}
for i=1,100do
::_::
cls()t=time()dt=t-p
if l<=0 then
?"earth shield 20xx",30,56,11
?" hit ❎ to start",30,68,8
if(btnp(5))l=5c=0
else
for i=1,#a do
e(a[i],a[i],5)end
r(60,60,68,68,12)rect(56,56,72,72,7+o)d={60,62,61,62,60,63,61,63,62,64,63,65,62,66,65,62,66,62,65,63,66,63,67,64,66,65,67,65,68,65}
for i=1,#d-1do
e(d[i],d[i+1],11)end
if h<0then
cf=flr(rnd(2))
x=flr(rnd(128))
y=flr(rnd(128))
if cf==1 then
x=flr(rnd(2))*128
else
y=flr(rnd(2))*128
end
v={64-x,64-y}
end
if(t%10==0 and n>=10)n-=3
for _,i in pairs(s) do
e(i.x,i.y,i.pol)i.x=i.x+dt*i.vi.y=i.y+dt*i.vi.v={64-i.x,64-i.y}
if((i.x>=56 and i.x<=72)and(i.y>=56 and i.y<=72))then
if(i.pol==7+o)then
c+=1
poke4(12800,2571.2472)sfx(0)
else
cls()
r(0,0,127,127,7)
l-=1
poke4(12800,2471.2472)sfx(0)
end
del(s,i)
end
end
if(btnp(5))o=(o+1)%2
?"score: "..c.."\nlife: "..l,12
p=t
h-=1
end
flip()
goto _

I was liking the game at first, but the moment the screen flashed, I scrolled away. Going from a screen full of black to a full screen of white and back is a really drastic change that definitely should have a warning.

Developer

Put a warning on it now, thanks for the heads up :)

Developer

Thanks for the feedback everyone! I've changed the input button to X and made it harder with a smoother ramping in speed, the top speed seems pretty hard to me now :D

cool stuff in here. difficulty needs to be raised drastically. 200+pts and nothing was changing. Would like game Shorter and harder with win condition

Great game - very compelling & fried my brain bit too while on auto-pilot! 👍
(I was on a roll for a massive score, but alas, lost it when I panicked-pressed at the end)

TIP: Might be easier on players to actually use the X key with BTN(5) - as you're currently mixing buttons by saying "Press X", when BTN(4) == 🅾️ in PICO-8, not X.
(Try the gamepad/input tester, just to the right of your game screen above to confirm)

Cool little game. Started off a bit slow, but fun once it got going fast!