οΈ",s2="οΈ",s3="",s4="",s5="",s6="",s7="",s8="",s9="",s10="",s11="",s12="",s13="",s14="",s15="",s16="",s17="",s18="",s19="",s20="",s21="",s22="",s28="",s23="",s24="",s25="",s26="",s27="",animation=0,anim1=()=>{sound(f10),animation=1,room20(),r2099.style.transformOrigin="250px 150px",r2099.style.transition=".7s all linear",setTimeout("C.m({n:'r2099',x:-200,rz:100,z:30})",100),s.r20pf?(setTimeout(room41,800),s.day>=790&&s.day%8==4&&s.r40c<300&&s.r40c>60&&!s.r41v?(setTimeout("r2099.style.transition='.5s all';C.m({n:'r2099',x:-155,y:65})",900),setTimeout("r2099.style.transition='1s all';C.m({n:'r2099',x:-280,y:185});C.m({n:'ww',x:5,y:165,z:50,rx:65,rz:75,sx:.2,sy:.2})",1410),setTimeout("ww.style.opacity=0;s.r41v=1",2e3),setTimeout("C.m({n:'key',y:1})",2500),setTimeout(fadeout,5500),setTimeout("s.r41w=s.r41y=1;room01();fadein();animation=0",6e3)):(setTimeout("r2099.style.transition='.5s all';C.m({n:'r2099',x:-80,y:185})",900),setTimeout("r2099.style.transition='2s all';C.m({n:'r2099',x:55,y:185})",1410),setTimeout(fadeout,5e3),setTimeout("s.r41y=1;room01();fadein();animation=0",5500))):(setTimeout("r2099.style.transition='.3s all';C.m({n:'r2099',x:-310,y:115,rz:100,z:30})",800),setTimeout(fadeout,2500),setTimeout("s.r20g=0;room01();fadein();animation=0",3e3))},book00=(s,r)=>{sound(f3),bc.innerHTML="The big book of inventions",bc.style.background="hsl(0 50% 63%)",book.innerHTML="Things invented so far: Castles Cannons Telescopes Books ...
Last night the moon was very bright. A wild beast attacked me in the woods. It swallowed the key of my castle. I managed to capture it, but I need to find a way to get my key back...
Also, my drawbridge mechanism is broken!
- King Andrzej",bc.className=""},book20=(s,r)=>{sound(f3),bc.innerHTML="How Arthur Became King",bc.style.background="hsl(200 50% 63%)",book.innerHTML="Knight Arthur, On the stone saw the sword, Nudged twice up, twice down, And twice on both sides, Making him the king, In the land of Britain.",bc.className=""},book01=(s,r)=>{sound(f3),bc.innerHTML="Decoding shields",bc.style.background="hsl(300 50% 63%)",book.innerHTML="I've been told that symbols must be read from top to bottom while colors are read from left to right.",bc.className=""},book02=(s,r)=>{sound(f3),bc.innerHTML="Map of the castle",bc.style.background="hsl(600 50% 63%)",book.innerHTML+="
Thou are here",C.p({g:"book",html:s18,x:40,y:-200,sx:1.5,sy:1.5,css:"plan"}),bc.className=""},book13=(r,e)=>{sound(f3),bc.innerHTML="The gears of power",bc.style.background="hsl(1000 50% 63%)",book.innerHTML="I guess they look like this:",s.b13b||C.p({g:"book",html:"βοΈ",x:10,y:100,css:"gear",cl:"b13a"}),bc.className=""},b13a=()=>{ai("gear"),s.b13b=1},book22=(s,r)=>{sound(f3),bc.innerHTML="Phases of the moon",bc.style.background="hsl(800 50% 63%)",book.innerHTML="In this magical world, a moon cycle is 8 days long.
π π π π π π π π π new ------------- full ------------ new
(Actually, it's because there aren't enough moon emoji)",bc.className=""},book23=(s,r)=>{sound(f3),bc.innerHTML="How to turn your dragon",bc.style.background="hsl(1100 50% 63%)",C.p({g:"book",w:50,h:50,html:"ποΈ",x:50,y:55,css:"dragon",o:"20px 20px"}),C.p({g:"book",w:50,h:50,html:"ποΈ",x:70,y:92,rz:-90,css:"dragon",o:"20px 20px"}),C.p({g:"book",w:50,h:50,html:"ποΈ",x:50,y:159,rz:0,css:"dragon",o:"20px 20px"}),C.p({g:"book",w:50,h:50,html:"ποΈ",x:30,y:196,rz:90,css:"dragon",o:"20px 20px"}),C.p({g:"book",w:50,h:50,html:"ποΈ",x:50,y:233,rz:180,css:"dragon",o:"20px 20px"}),C.p({g:"book",w:50,h:50,html:"ποΈ",x:70,y:327,rz:270,css:"dragon",o:"20px 20px"}),C.p({g:"book",w:50,h:50,html:"ποΈ",x:50,y:364,rz:180,css:"dragon",o:"20px 20px"}),C.p({g:"book",w:50,h:50,html:"ποΈ",x:70,y:441,rz:270,css:"dragon",o:"20px 20px"}),bc.className=""},title=()=>{C.p({w:1100,x:100,y:-1150,html:"
CASTLE ESCAPE"}),C.p({w:1100,x:100,y:-1020,html:"
New game",cl:"ng"}),localStorage.castleescape&&(C.p({w:1100,x:100,y:-965,html:"