Проверить Matter.js
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html 1.5KB

3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  5. <title>mjs</title>
  6. <script src="https://cdn.jsdelivr.net/npm/matter-js@0.17.1/build/matter.min.js"></script>
  7. <style>
  8. html, body {
  9. margin: 0;
  10. padding: 0;
  11. overflow: hidden;
  12. background: #fbfbfb;
  13. }
  14. body {
  15. height: 100vh;
  16. width: 100vw;
  17. }
  18. #корень {
  19. position: relative;
  20. }
  21. #отладка {
  22. position: absolute;
  23. right: 2em;
  24. bottom: 2em;
  25. }
  26. </style>
  27. </head>
  28. <body>
  29. <div id="корень"></div>
  30. <div id="отладка"></div>
  31. <script src="100.мир.js"></script>
  32. <script src="105.заголовок.js"></script>
  33. <script src="120.физика.js"></script>
  34. <script src="140.изображения.js"></script>
  35. <script src="160.объекты.js"></script>
  36. <script src="180.ввод.js"></script>
  37. <script src="300.действия.js"></script>
  38. <script src="320.игрок.js"></script>
  39. <script src="340.слежение.js"></script>
  40. <script src="400.столкновения.js"></script>
  41. <script src="700.пуск.js"></script>
  42. <script src="800.пример.json.js"></script>
  43. <script src="900.обновление.js"></script>
  44. </body>
  45. </html>