Play game
CATS CATS CATS #PICO1K's itch.io pageCharacters/Bytes used
1024 Characters
Source Code
β₯=64β€=128β¦=35π±=.01β="00"a={}β§=sin
Λ=cos
β=rnd
β=yield
β=fillp
function β
(x,y)for i=0,β¦ do
for j=0,1,.1 do?"β
",x+β§(j)*i,y+Λ(j)*i,8+β(3)
end
β()end
end
function b(c)add(a,cocreate(c))end
f=0g=0function l(x,y)x=β(β€)y=β(β€)for i=0,β¦ do
circ(x,y,8-i/8,10)β()end::m::q=atan2(y-β₯,x-β₯)
if(mid(g-π±,q,g+π±)==q)goto n
?"π±",x,y,9
z=c-x
w=d-y
s=β(β¦)/β₯
x+=sgn(z)*s
y+=sgn(w)*s
if(z*z+w*w<3*3)e=1
β()goto m::n::?"\af#.f",0,0
f+=1β
(x,y)b(l)end
function p()::q::?"π±π±π±\n\nlast β "..f.."00\n hi β "..dget(1)..β,β¦,β¦,7
?"β to play",β¦,β₯+β§(β½),8
if(btn(β))goto r
β½+=.1β()goto q
::r::b(l)b(l)b(l)f=0e=0β½=0c=β₯
d=β₯::s::?"β: "..f..β,1,1
if(e>0)goto k
if(β½%β¦==0)b(l)
β½+=1β(β)clip(0,8,β€,β€-16)rectfill(0,0,β€,β€,1)β()line(β₯,β₯,β₯+β§(g)*β€,β₯+Λ(g)*β€,8)g+=.003g-=g\1?"μ",c,d,7
i=btn()c=mid(β€-7,c+(i&2)/2-(i&1))d=mid(8,β€-13,d+(i&8)/8-(i&4)/4)β()goto s::k::a={}β()for i=0,β¦ do?"μ",c,d,7
β()end
dset(1,max(dget(1),f))?"\ace-a"
β
(c,d)for i=0,β₯ do
β()end
b(p)end
cartdata("bts_p1k1")b(p)::v::cls()h={}while #a>0 do
β=deli(a,1)
if(coresume(β))add(h,β)
end
a=h?"βΆ1"
goto v
Link to Commented Source Code
Download it from the game's page! :)
Leave a comment
Log in with itch.io to leave a comment.
Comments
98k
My high score is 21328.
I've gotten the impression that the pico-8 community has very different preference than me, so I won't comment on what I did or didn't like in your game. I will say this though: if you make a game with a goal of just getting as high a score as possible without the gameplay ramping up to absurdity, make the points gained as small as possible. That minimizes the chance that some jerk like me is going to come solve your game and repeatedly break the score counter. If that score seems off, it's because I hit the maximum pico-8 integer value twice.
For anyone who reads this wondering how, the safest spot is right next to the laser, moving diagonally is faster than moving straight (cause not enough code space for properly multiplying by square root of 2) and if you pay enough attention you can tell which of the spawning circles will make it in time to not be hit immediately by the laser.
Thanks for breaking the game! I put a patch up to hide the score issue. I specifically chose a large value score and did wonder if anyone would exceed it, but I thought I'd wait and see as I didn't go over the limit myself.
I'm actually excited that you found that strategy to 'solve' the game. As you guessed, I didn't correct the movement issue due to space - I preferred to prioritise the gameloop and I'm happy with the choice I made there. I did wonder if a strategy like you're describing would be possible - the spawn rings are there specifically to make you aware of the spawn positions to let you 'surf' the laser and not die to randomly spawning enemies - so it's nice to have that confirmed. If I did expand the game then a mechanic based around that would be interesting I think.
Really slick entry - love the mechanics & visuals of it.
Nice one! π
(My best was 4400)
Thanks, it's kind of you to say. :)