// Googleのシステムが最初に呼び出す必須の関数
function doGet() {
const htmlText = getNewGameHtml();
return HtmlService.createHtmlOutput(htmlText);
}
// ゲームの本体データをテキストとして出力する関数
function getNewGameHtml() {
const code = [];
code.push("");
code.push("");
code.push("
");
code.push("");
code.push("
ブロスタ タイピング
");
// スタート画面
code.push("
");
code.push("
ひらがなのままでも入力OK!
制限時間は60秒間です。
");
code.push("
");
code.push("
");
code.push("
");
// ゲーム画面
code.push("
");
code.push("
");
code.push("
残り時間: 60秒
");
code.push("
スコア: 0
");
code.push("
");
code.push("
---
");
code.push("
---
");
code.push("
");
code.push("
");
// リザルト画面
code.push("
");
code.push("
タイムアップ!
");
code.push("
---
");
code.push("
");
code.push("
");
// Inbox(受信箱)画面
code.push("
");
code.push("
📩 受信箱一覧
");
code.push("
");
code.push("
");
code.push("
");
code.push("
");
// JavaScript ロジック部分
code.push("");
code.push("");
code.push("");
return code.join("\n");
}