C'est le jeu des tubes de couleur dans les pubs la
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

index.html 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <!DOCTYPE html>
  2. <html lang="">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>p5.js example</title>
  7. <link href="./css/style.css" rel="stylesheet">
  8. <script src="./js/p5.min.js"></script>
  9. <script src="./js/tube.js"></script>
  10. <script src="./js/ui.js"></script>
  11. <script src="./js/game.js"></script>
  12. <script src="./js/drawer.js"></script>
  13. <script src="./js/controller.js"></script>
  14. </head>
  15. <body>
  16. <div class="row w-full justify-evenly border p-2 m-2">
  17. <span class="menuitem">
  18. <label>Tubes Number</label>
  19. <input type="number" size="5" id="tbNumber" value="10">
  20. </span>
  21. <span class="menuitem">
  22. <label>Tubes Levels</label>
  23. <input type="number" size="5" id="tbLevel" value="6">
  24. </span>
  25. <span class="menuitem">
  26. <label>Padding</label>
  27. <input type="number" size="5" id="padding" value="10">
  28. </span>
  29. <span class="menuitem">
  30. <label>Tube Size</label>
  31. <input type="number" size="5" id="tbSize" value="50">
  32. </span>
  33. <button type="button" onclick="newGame()">New game</button>
  34. </div>
  35. <div class="row justify-center">
  36. <main oncontextmenu="return false;">
  37. </div>
  38. </main>
  39. </body>
  40. </html>