# Rogue280v2

*Press any key to start*

## What's this?

A roguelike whose full source code fits the new 280 characters limit of a tweet

This is my second try, check out the first one here

## Instructions

Your goal is to go as deep as possible in the dungeons of doom

Press left and right to explore the level and find the stairs (>) to go to the next one.

While exploring the level, you may also find altars (±) that increase your HP by a random amount, or monsters which will reduce it, they are stronger as you go deeper.

Once you have found the stairs, it's your choice if you want to keep exploring or if you want to proceed.

Good luck!

## Full Source Code

<p id=e><script>
x=l=0,g=30
r=_=>Math.random()*30|0
n=_=>a=r(l++,$=r())
f=_=>{for(m=" ",i=x-5;i<x+6;i++)
m+=i==x?'@':i==$?'±':i==a?'>':i%30!=i?
'#':i%3?'»':'_';e.innerHTML=`H${g}L`+l+m}
n()
onkeydown=v=>g>0&&(r()<5?g-=l:
(x+=v.which==37?-1:1)-a?0:n(),
x==$?g+=r($=r()):0,f())</script>