ドロンを実装する

This commit is contained in:
yuuki
2024-12-08 19:04:00 +09:00
parent 427a16733a
commit 59fb5f5ac9
2 changed files with 25 additions and 1 deletions

View File

@@ -243,6 +243,13 @@ class SongSelect{
skin: this.songSkin.customSettings, skin: this.songSkin.customSettings,
action: "baisoku", action: "baisoku",
}); });
this.songs.push({
title: "ドロン",
skin: this.songSkin.customSettings,
action: "doron",
});
this.songs.push({ this.songs.push({
title: strings.back, title: strings.back,
skin: this.songSkin.back, skin: this.songSkin.back,
@@ -920,6 +927,20 @@ class SongSelect{
} }
localStorage.setItem("baisoku", baisoku.toString()); localStorage.setItem("baisoku", baisoku.toString());
}, 100); }, 100);
} else if (currentSong.action === "doron") {
this.playSound("se_don");
setTimeout(() => {
let doron = localStorage.getItem("doron") ?? "false";
const input = prompt("ドロンを有効にするには\"true\"を入力してね!", doron);
if (input === null) {
// キャンセル
} else if (input === "") {
input = "false";
} else {
doron = input;
}
localStorage.setItem("doron", doron);
}, 100);
} }
} }
this.pointer(false) this.pointer(false)

View File

@@ -1705,7 +1705,10 @@
ctx.fill() ctx.fill()
ctx.stroke() ctx.stroke()
} }
if(!fade || fade < 1){
const doron = localStorage.getItem("doron") ?? "false";
if((!fade || fade < 1) && doron === "false"){
// Main circle // Main circle
ctx.fillStyle = fill ctx.fillStyle = fill
ctx.beginPath() ctx.beginPath()