Browse Source

現時点の進捗 Push

pull/2/head
miteruzo 1 year ago
parent
commit
949f9c99f5
5 changed files with 14 additions and 0 deletions
  1. +2
    -0
      .gitignore
  2. BIN
      assets/kita.wav
  3. +1
    -0
      forms/top.frm.php
  4. +7
    -0
      scripts/main.js
  5. +4
    -0
      top.php

+ 2
- 0
.gitignore View File

@@ -1,3 +1,5 @@
/nizika
/nizika_nizika
/nml
/nizika_nml


BIN
assets/kita.wav View File


+ 1
- 0
forms/top.frm.php View File

@@ -7,6 +7,7 @@
<body>
<?php require_once './forms/header.frm.php' ?>
<main>
<p>ニジカもんすたぁ!! にようこそ!</p>
</main>
<?php require_once './forms/footer.frm.php' ?>
</body>


+ 7
- 0
scripts/main.js View File

@@ -62,6 +62,8 @@ const kitaList = Array (40).fill ().map (function (__, i)
return _;
});

const runawayGuitar = new Audio ('./assets/kita.wav');

let canvasX;
let canvasY;
let frame = 0;
@@ -76,6 +78,11 @@ window.setInterval (() => reDraw (), 16);
function
preprocess ()
{
canvas.addEventListener ('click', function ()
{
runawayGuitar.play ();
});

reDraw ();
}



+ 4
- 0
top.php View File

@@ -0,0 +1,4 @@
<?php

require_once './forms/top.frm.php';


Loading…
Cancel
Save