let innY=1;function inn(){if(dungeon_count<DUNGEON_MAX){drawImg(Graphs.BG_TOWN,0,0)}else{drawImg(Graphs.BG_TOWN2,0,0)} fText("【宿屋】",500,45,25,colorRGB(255,255,255));fText("勇者さま、今日はもうお休みになられますか？",300,180,20,colorRGB(255,255,255));let text=["休む","休まない"];let color;for(let num=0;num<text.length;num++){if(num===innY){color=colorRGB(255,64,64)}else{color=colorRGB(255,255,255)} fText(text[num],((DISPLAY_SIZE_X-text[1].length*25)>>1)+50,220+35*num,25,color)} innY=selectMenuY(innY,2);if(key[32]===1||key[13]===1){key[32]=2;key[13]=2;if(innY===0){playSE(Sounds.SE_SAVE);gameScene=SCENE_INN2;backScene=BS_TOWN;innY=1;day_num++;dungeon_count=0}else{playSE(Sounds.SE_ESC);gameScene=SCENE_TOWN;backScene=BS_TOWN}} if(key[27]===1){key[27]=2;playSE(Sounds.SE_ESC);stopBgm();bgmSwitch=BGM_OFF;gameScene=SCENE_TITLE;backScene=BS_TITLE} drawImg(Graphs.KEY_ESC,0,0);fText("タイトルに戻る",105,14,16,colorRGB(64,255,64));drawImg(Graphs.KEY_I,100+400,320);drawImg(Graphs.KEY_K,100+400,350);fText("↑↓",215+400,350,16,colorRGB(64,255,64));drawImg(Graphs.KEY_SPACE,100+400,390);fText("決定",215+400,400,16,colorRGB(64,255,64));fText("GOLD:"+gold+"G",520,450,30,colorRGB(255,255,150))} let innAlp=50;function inn2(){drawImg(Graphs.BG_TOWN,0,0);setAlp(innAlp);drawImgS(Graphs.W_BG,0,0,DISPLAY_SIZE_X,DISPLAY_SIZE_Y);innAlp-=3;if(innAlp<0){innAlp=50;setAlp(100);gameScene=SCENE_TOWN;backScene=BS_TOWN}}