A simple game where you fight against a dummy bot, get coins, upgrade your sword and armor, fight harder dummy bot, and so on.
_='a=documN;d=e=1;Xc=l=p=q=r=t=u=0;w?round;x?pow;b"<^Q{marg`:30px}#c,#d{text-align:cNer;posi:absolute}#d{ft:300px}6^<Q>6Q>";j; 9j8Xfor(i=l;0<=i;i--)m=m7<op Rue="~i7iK6op>""Co`scK@lvldKFlvle7%"g(1@(~d"g(2F(~eLvl: <_bmK6_> $"s$JBatt!%\'z\'>Save / Load"} 9g(k){1dd,dV2ee,eVW9n8g4p;h4q;1>q(c+=w(r/2),u==llVif(1>q||1>p)cart),carf),W9o8q-=dZ0;f=set81} 9s8u=b").Rue;r=q=uZ)+3;p=5*e\'c Yougp7d Dummy Bothq7%%%%"o"iJAttack!\';t=set"p-=u;n"9z8h=atob(prompt("",btoa(cdel))).split("|"c0]d1]e2]l3]W;a.getEmNById("<G onclick=$nfunc.`nerHTML=6G><divw(x( JO/|$$|/ $$%(),2))6div>;b.children[1]i").disabd=!: "+=w(h[7 co`s));)JUpgrade letionJ~ id="K|"+InterR(==kc>=Timeout(,1E3n}(c-=$\\%4")"HP6</7+\'8{9 ?=Math.@Sword FArmor GbuttonJ">K+"NentQpreRvalV++Wj}Xm="";Z,1.5)^sty>_sect`in~\'+&&';for(Y in $='~`_^ZXWVRQNKJGF@?98764%$ ')with(_.split($[Y]))_=join(pop());eval(_)
Xz0nYT1kb2N1bU47ZD1lPTE7WGM9bD1wPXE9cj10PXU9MDt3P3JvdW5kO3g/cG93O2IFIjxeUXttYXJnYDozMHB4fSNjLCNke3RleHQtYWxpZ246Y05lcjtwb3NpFzphYnNvbHV0ZX0jZHsWZnQ6MzAwcHh9Nl48UT42UT4iO2oLOyA5ajhYZm9yKGk9bDswPD1pO2ktLSltPW03PG9wFyBSdWU9In5pNxhpSzZvcBc+Ig8iQ29gcxFjSwNAbHZsEWRLA0ZsdmwRZTclAiJnKDEVQCh+CGQTAiJnKDIVRih+CGUTA0x2bDogPF8ZYhhtSzZfP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
b = document.body (shim)
c = coins
d = sword level
e = armor level
f = timeout variable
g() = upgrade
h = inside function variable
i = looping variable
j() = update pre
l = max level
m = whatever
n() = battle update
o() = attack
p = player hp
q = enemy hp
r = enemy max hp
s() = initiate battle
t = battle interval
u = enemy dmg
v() = button countdown
w = f.round
x = f.pow
z() = load game
IDs:
a = <pre>
b = quest level
c = player ascii
d = enemy ascii
g = player hp number
h = enemy hp number
i = attack button
*/
a=document;
d=e=1;
m="";
c=l=p=q=r=t=u=0;
w=Math.round;
x=Math.pow;
b.innerHTML='<style>pre{margin:30px}#c,#d{text-align:center;position:absolute}#d{left:300px}</style><pre></pre>';
j();
function j(){
m="";
for(i=l;i>=0;i--)m=m+'<option value="'+i+'">'+i+'</option>';
b.children[1].innerHTML='Coins: '+c+'\nSword lvl: '+d+'\nArmor lvl: '+e+'\n\n<button onclick="g(1)">Upgrade Sword ('+w(x(d,2))+' coins)</button>\n<button onclick="g(2)">Upgrade Armor ('+w(x(e,2))+' coins)</button>\n\nLvl: <select id="b">'+m+'</select> <button onclick="s()">Battle!</button>\n\n<button onclick=\'z()\'>Save / Load</button>'
}
function g(h){
if(h==1){if(c>=w(x(d,2))){c-=w(x(d,2));d++;}}
if(h==2){if(c>=w(x(e,2))){c-=w(x(e,2));e++;}}
j()
}
function n(){
a.getElementById("g").innerHTML="HP: "+p;
a.getElementById("h").innerHTML="HP: "+q;
if(q<1){c+=w(r/2);if(u==l){l++;}}
if(q<1||p<1){clearInterval(t);clearTimeout(f);j()}
}
function o(){
q-=w(x(d,1.5));a.getElementById("i").disabled=true;f=setTimeout(function(){a.getElementById("i").disabled=false},1000)
n()
}
function s(){
u=a.getElementById("b").value;
r=q=w(x(u,1.5))+3;
p=e*5;
b.children[1].innerHTML='<div id="c">\nO\n/|\\\n|\n/ \\\n\nYou<div id="g">'+p+'</div></div><div id="d">\nO\n/|\\\n|\n/ \\\n\nDummy Bot<div id="h">'+q+'</div></div>\n\n\n\n\n\n\n\n\n<button onclick="o()" id="i">Attack!</button>';
t=setInterval("p-=u;n()",1000);
n()
}
function z(){
h=atob(prompt("",btoa(c+"|"+d+"|"+e+"|"+l))).split("|");
c=w(h[0]);
d=w(h[1]);
e=w(h[2]);
l=w(h[3]);
j()
}