Created for TweetTweetJam 2023.

You are on an adventure!

At the top of your screen are your stats: Health (๐Ÿ’–), Wisdom (๐Ÿง ), Strength (๐Ÿ’ช), and Wealth (๐Ÿ’ฐ).

Below your stats is a group of encounters. Use the 1, 2, and 3 keys to engage with the first, second, or third encounter. Friendly creatures and helpful items will increase your stats, while monsters will reduce your health. 

If you fail, refresh the page to try again.

Good luck!

You can also play the game on github pages.

The code was written in javascript and uses the jquery library. The entire source code (including HTML tags) is exactly 500 characters per Notepad++.

<p></p><h1><script src="j.js"></script><script>s=[["๐Ÿ’–",3],["๐Ÿง ",3],["๐Ÿ’ช",3],["๐Ÿ’ฐ",0]],L=0,x="๐ŸŠ41๐Ÿถ01๐Ÿฆฃ11๐Ÿ‘ฟ42๐Ÿซ–02๐Ÿ‘ป43๐Ÿ—ฟ12๐Ÿน12๐Ÿ—32๐Ÿฆ–43๐ŸŒ21๐Ÿ41๐Ÿ‘บ44๐Ÿบ31",y=x.match(/.{1,4}/g),c={1:0,2:1,3:2},u=h=>{null!=h&&L>=0&&(a=y[L+h],i=+a[2],v=+a[3],4==i&&(i=0,v=-v),s[i][1]+=v,L+=h+1,d())},d=()=>{for(h="",j=-1;j++<3;)h+=s[j][0]+s[j][1]+" ";if(h+="
",j=0,s[0][1]<=0)h+="๐Ÿ’€",L=-1;else if(L+3>y.length)h+="โญ",L=-1;else for(;j++<3;)h+=y[L+j-1].substring(0,2);$("h1").html(h)},k=h=>{u(c[h.key])},$(document).on("keydown",k),d()</script></h1>

Download

Download
source.zip 75 kB

Comments

Log in with itch.io to leave a comment.

(+1)

Whew, I made it by the skin of my teeth! Great little idea, I felt like I went on a tiny adventure! :)