C'est le jeu des tubes de couleur dans les pubs la
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

index.html 1020B

12345678910111213141516171819202122232425262728293031323334353637383940
  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/game.js"></script>
  11. <script src="./js/drawer.js"></script>
  12. <script src="./js/sketch.js"></script>
  13. </head>
  14. <body>
  15. <menu>
  16. <menuitem>
  17. <label>Tubes Number</label>
  18. <input type="number" size="5" id="tbNumber" value="10">
  19. </menuitem>
  20. <menuitem>
  21. <label>Tubes Levels</label>
  22. <input type="number" size="5" id="tbLevel" value="5">
  23. </menuitem>
  24. <menuitem>
  25. <label>Padding</label>
  26. <input type="number" size="5" id="padding" value="5">
  27. </menuitem>
  28. <menuitem>
  29. <label>Tube Size</label>
  30. <input type="number" size="5" id="tbSize" value="5">
  31. </menuitem>
  32. <button type="button" onclick="newGame()">New game</button>
  33. </menu>
  34. <main oncontextmenu="return false;">
  35. </main>
  36. </body>
  37. </html>