🌸 「なでしこ」
>
🍯 「貯蔵庫」
モグラindex
🌟新規
📒一覧
🔌
🔍検索
🚪ログイン
モグラindex 📖
モグラindexのプログラム
プログラム:
(→大)
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>モグラ叩き</title> <!-- PyScript本体の読み込み --- (*1) --> <script type="module" src="https://pyscript.net/releases/2025.8.1/core.js"></script> <!-- Pythonのメインプログラムを読み込み --- (*2) --> <script type="mpy" src="https://n3s.nadesi.com/plain/3103.txt"></script> <script type="mpy" src=">"https://n3s.nadesi.com/plain/3104.txt"</script> </head> <!-- ゲーム画面をHTMLで用意 --- (*3) --> <body style="text-align: center;"> <h1 id="info" style="color: brown">🔨モグラ叩き</h1> <!-- ゲーム開始ボタン --- (*4) --> <button id="start_button" mpy-click="start_button_on_click">ゲーム開始</button> <br><br> <!-- ゲーム画面となるCanvas要素 --- (*5) --> <canvas id="canvas" width="600" height="400" mpy-click="canvas_on_click" style="border:1px solid black;"></canvas> </body> </html>
プログラムを実行
⭐ isatomoko 作
タイトル:
モグラindex
ライセンス:
自分用 (貯蔵庫のみ/転載不可/ハブ保存なし)
タイプ:
html
タグ:
-
利用バージョン:
3.7.9
作成日時:
2025/11/26 15:48 (編集: 2025/11/26 15:59)
公開の投稿
ログイン
して★を付けよう!
📝作品を編集
作品公開情報
📍この作品のURL:
📍アプリ(即時実行)のURL:
📍アプリ(実行ボタンあり)のURL:
📍ブログパーツ:
上記HTML↑をブログに貼り付けることでアプリを埋め込めます。
📍ライブラリ直リンク - 『!「***」を取込』で使うとき:
通報数:
0
通報って何?