Skip to content

A 500-characters codegolfed tribute to the infectious game Vampire Survivors.

Notifications You must be signed in to change notification settings

kesiev/wizardsurvivors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wizard Survivors



Story

Wizard Zurlee has been trapped by a horde of deadly vampire bats! Use WASD to escape, hit enemies with your magical spinning bolts, and grow your power until you become the bullet hell!

The game

Wizard Survivors is inspired by the infectious Vampire Survivors. The game source is 500 characters long, so it can be posted on a single post/Toot on Mastodon. To play the game just create an empty .html on your computer, paste this code, and open it up with a web browser.

<canvas id=C><svg onload="X=C.getContext`2d`,E=Array(D=99).fill(0),S=Math.sin,L=[3,setInterval('L[1]+=I=.05,C.width=C.height=D*2,L[0]>1&&E.map((i,w)=>{with(i)e=w%2,i&&(e?A(x)&A(y)?!L[0]--:onkeyup=onkeydown=x=>L[x.key]=x.type[5]&&2:E.map((n,z)=>z%2&A(n.x-x)&A(n.y-y)?L[E[z]=r=0]+=I:V=c=>e*c+1-(c>0)*2)&&x<D)?x=V(x,y=V(y)+S(1.5-s)*r-~L.w+~L.s,r=!e*r+1,X[F](e?`🦇`:`✨`,D+x,D+y))+S(s+=I)*r-~L.a+~L.d:w<L[e]?E[w]={x:S(o=new Date)*D,y:S(1.5-o)*D,r:0,s:w}:A=c=>c*c<D}),X[F=`fillText`](`🧙`+~~L[0],D,D)',40)]">

I've used no packer, so the characters are all printable. You can print it on your T-Shirt and use it as an emergency game if you feel the urge of slaying bats, level up, and become an unstoppable killing machine for a minute.

Why?

At the very beginning of The Game Awards 2022 they announced a free mobile version of Vampire Survivors. I didn't know the game so I downloaded it to my phone and gave it a quick try. Then I missed the rest of the event.

Pro-tip: never give free carefully crafted distractions at the start of a conference! ;)

Technical notes

The game should work without problems if run from a local file. You may need the .htaccess file if you want to host it on the web.

Credits

Thanks

About

A 500-characters codegolfed tribute to the infectious game Vampire Survivors.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages