@

>

Rogue280

What's this?

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

This is my first try, check out the latest 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 find potions that increase your HP by 30, or monsters which will reduce it, they are stronger as you go deeper

Good luck!

Full source code

<p id=e><p id=p>@</p><p id=s>>
<script>x=a=l=0,g=60
r=()=>Math.floor(Math.random()*30)
n=()=>{a=r();l++}
m=(e,x)=>e['style'].marginLeft=x*20
n()
onkeydown=v=>{if(g<0)return
r()<5?g-=l:r()<1?g+=30:x+=v.keyCode==37?-1:1
x==a?n():0
e.innerHTML="HP "+g+" Lv"+l
m(s,a)
m(p,x)}</script>