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

THZ II: The EscapeView game page

560 character "rogue-like"
Submitted by kettek (@kts_kettek) — 1 day, 1 hour before the deadline
Add to collection

Play game

THZ II: The Escape's itch.io page

How many characters did you use?
560

Include your code here, if you'd like to show it off!
M=Math,A=Array
R=_=>M.random()*s<<0
L=A(0,c=9,...A(30).fill(2))
P=[]
m=A(s=(a=90)*a).fill('.')
B=p=>{for(b=0;b<6;b+=.4)m[p+~(M.sin(b)*5)*a+M.cos(b)*5<<0]='#'}
F=p=>P.findIndex(w=>w==p)
C=(p,o=F(p))=>L[o]?--L[o]:m[p]=='.'?P[i]=p:m[P[0]]='.'
H=(p,d)=>C(p+(d%a-p%a>0?1:-1)+(~~d/a-p/a>0?a:-a))
for(i in L)P[i]=R(),B(R()),m[R()]='*'
onkeyup=e=>{d=1-e.which%4
for(i in L)L[i]?i-1?H(P[i],P[1]):C(P[1]+(d%2?d*a:-d-1)):r=''
for(y=-c;y++<c;r+=`
`)for(x=-c;x++<c;r+=T+1?T?L[T]?T-1?'ö':L[1]:',':'H':m[p]||'~')T=F(p=P[1]+y*a+x)
console.log(L[1]?P[0]-P[1]?r:"yeet":"deth")}

Leave a comment

Log in with itch.io to leave a comment.

Comments

Neat game. I included it in my TweetTweetJam 2 compilation video series, if you’d like to take a look. :)

Developer

You can either play on the project page or just copy and paste the provided code into the browser developer console. :}