Update: A new version has been released, check it out at http://slashwareint.com/mdc/

140 characters… have you ever felt that a tweet is too short to express your feelings to the world?

But, what about putting a whole playable game inside a tweet?

Someone at the office showed me this today, and I was tempted…

<body onload=d=Date.now,t=d(s=0)><p style="float:left" onclick="(e=d(++s)-t)<15e3?style.margin=e%300+' 0 0 '+e*7%300:alert(s)">X</p></body> — Alex Yoder (@alex_yoder) June 30, 2015

After lots of fiddling and different approaches, I finally managed to create my own! 🙂

<body onload=l=f=r=0;p=9 onclick="r=Math.random();if(r>.8)f=1;else p+=r>.6?3:-1;m.innerHTML='P'+p+'L'+l+'S'+f"><p id=m onclick=f?l++:0;f=0> — Slashie the gamedev (@slashie_) July 4, 2015

In my previous efforts I found out I could create a playable and maybe even enjoyable game in about 240 characters, created a simple 2D roguelike and a flappy bird clone… but the 140 characters mark seemed out of reach… the closest I could get was 152 characters… the pain!

But now, here you have it! a full fledged dungeon crawler… how deep can you get into the dungeon?

Note: I only tested it on Google Chrome, might not work in Internet Exploder (that’s a joke, I’m almost certain it WON’T WORK :P)

How to play

Paste the contents of the tweet on an empty html page, or simply go here

Click anywhere in the screen to explore the current dungeon level, your stats will show in the page like this: P: Your power L: Current dungeon level S: Determines if you have found the stairs for the next level

Every time you get to a new level you have to explore it to find the stairs, when exploring lots of things could happen to you… you could have your power increased by finding ancient artifacts, or have it decreased by fighting evil monsters, or you might find the stairs leading to the next dark scary level of the dungeon.

Once you have found the stairs to the next level, you can click your stats to use them, or you may continue exploring the level.

If your power drops below 0, consider yourself dead. Your journey is over.

Hope you have fun with it! If you didn’t get it you need a bit more imagination 😉

Submit the deepest level you manage to get to! 🙂