A minimalist Vampire Survivor-like in under 500 chars. Base code by me, with help from Heracleum, economics bat, pancelor, paraK00PA, and thisismypassword on the Pico-8 Discord server to get this thing under the character limit (couldn't have done it without them!).

Code:

function z(n,o)r=n.o-o.o e=n.f-o.f d=(r^2+e^2)^โ–ˆ*2end o=64๐˜ค={}๐˜ฅ={}f=o::๐˜ป::j=all b=btn()o+=b\2%2-b%2f+=b\8%2-b\4%2u=120๐˜ฑ=rnd

if(t()%1==0)add(๐˜ค,{o=๐˜ฑ{1,u},f=๐˜ฑ{1,u}})

if(t()%3==0)a=๐˜ฑ()add(๐˜ฅ,{o=o,f=f,u=1.5*cos(a),g=1.5*sin(a)},1)

for c in j(๐˜ค)do z(_๐˜ฆ๐˜ฏ๐˜ท,c)c.o+=r/d c.f+=e/d?"๐Ÿฑ",c.o,c.f,1

if(d<17)stop"k.o."end

deli(๐˜ฅ,4)for b in j(๐˜ฅ)do b.o+=b.g b.f+=b.u?"โ—†",b.o,b.f,5

if(b.o\u~=0)b.g*=-1

if(b.f\u~=0)b.u*=-1

for x in j(๐˜ค)do

z(b,x)if(d<16)del(๐˜ค,x)end end

?"์›ƒโถ1โถcb",o,f,7

goto ๐˜ป

(Note: Do to way it handles death, you'll have to go and refresh the page if you want to restart)

Leave a comment

Log in with itch.io to leave a comment.