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

CATS CATS CATS #PICO1KView game page

AVOID SPACE CATS
Submitted by Ben 🐞 β€” 15 days, 11 hours before the deadline
Add to collection

Play game

CATS CATS CATS #PICO1K's itch.io page

Characters/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

Submitted

98k

Submitted

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.

Developer

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.

HostSubmitted(+1)

Really slick entry - love the mechanics & visuals of it.
Nice one! πŸ‘
(My best was 4400)

Developer

Thanks, it's kind of you to say. :)