matrix-engine-wgpu 1.0.6 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/.codesandbox/tasks.json +46 -0
  2. package/.devcontainer/devcontainer.json +22 -0
  3. package/.github/dependabot.yml +12 -0
  4. package/REFERENCE.md +3 -5
  5. package/dev.md +460 -0
  6. package/empty.js +7 -6
  7. package/examples/games/jamb/jamb.js +1133 -0
  8. package/examples/load-obj-file.js +65 -28
  9. package/examples/unlit-textures.js +26 -23
  10. package/examples.js +35 -3
  11. package/index.js +8 -2
  12. package/main.js +454 -48
  13. package/non-project-files/dev.txt +21 -0
  14. package/non-project-files/image1.png +0 -0
  15. package/non-project-files/image6.png +0 -0
  16. package/package.json +31 -13
  17. package/public/app.js +2234 -114
  18. package/public/css/style.css +371 -110
  19. package/public/empty.html +1 -1
  20. package/public/empty.js +9887 -9264
  21. package/public/examples.html +10 -8
  22. package/public/examples.js +2035 -247
  23. package/public/index.html +3 -5
  24. package/public/manifest copy.web +35 -0
  25. package/public/res/audios/block.mp3 +0 -0
  26. package/public/res/audios/dice1.mp3 +0 -0
  27. package/public/res/audios/dice2.mp3 +0 -0
  28. package/public/res/audios/start.mp3 +0 -0
  29. package/public/res/meshes/jamb/bg.blend +0 -0
  30. package/public/res/meshes/jamb/bg.blend1 +0 -0
  31. package/public/res/meshes/jamb/bg.mtl +12 -0
  32. package/public/res/meshes/jamb/bg.obj +17 -0
  33. package/public/res/meshes/jamb/bg.png +0 -0
  34. package/public/res/meshes/jamb/dice-default.png +0 -0
  35. package/public/res/meshes/jamb/dice-mark.png +0 -0
  36. package/public/res/meshes/jamb/dice.mtl +12 -0
  37. package/public/res/meshes/jamb/dice.obj +40 -0
  38. package/public/res/meshes/jamb/dice.png +0 -0
  39. package/public/res/meshes/jamb/jamb-title.mtl +12 -0
  40. package/public/res/meshes/jamb/jamb-title.obj +26008 -0
  41. package/public/res/meshes/jamb/jamb.blend +0 -0
  42. package/public/res/meshes/jamb/jamb.blend1 +0 -0
  43. package/public/res/meshes/jamb/logo.png +0 -0
  44. package/public/res/meshes/jamb/nidzaDice.blend +0 -0
  45. package/public/res/meshes/jamb/nidzaDice.blend1 +0 -0
  46. package/public/res/meshes/jamb/pile.blend +0 -0
  47. package/public/res/meshes/jamb/simpleCube.blend +0 -0
  48. package/public/res/meshes/jamb/simpleCube.blend1 +0 -0
  49. package/public/res/meshes/jamb/sounds/roll1.wav +0 -0
  50. package/public/res/meshes/jamb/text.png +0 -0
  51. package/public/res/multilang/en.json +27 -0
  52. package/public/res/multilang/sr.json +27 -0
  53. package/public/test.html +636 -0
  54. package/public/three-test.js +165 -0
  55. package/public/worker.html +1 -1
  56. package/readme.md +193 -115
  57. package/src/engine/ball.js +477 -468
  58. package/src/engine/cube.js +486 -468
  59. package/src/engine/engine.js +4 -6
  60. package/src/engine/loader-obj.js +9 -6
  61. package/src/engine/matrix-class.js +237 -204
  62. package/src/engine/mesh-obj.js +603 -515
  63. package/src/engine/raycast.js +101 -0
  64. package/src/engine/utils.js +69 -3
  65. package/src/multilang/lang.js +35 -0
  66. package/src/physics/matrix-ammo.js +168 -15
  67. package/src/shaders/fragment.wgsl.js +4 -2
  68. package/src/shaders/shaders.js +1 -1
  69. package/src/shaders/vertexShadow.wgsl.js +1 -1
  70. package/src/sounds/sounds.js +47 -0
  71. package/src/world.js +311 -248
Binary file
Binary file
@@ -0,0 +1,27 @@
1
+ {
2
+ "changeTheme": "Theme dark/light",
3
+ "yes": "Yes",
4
+ "no": "No",
5
+ "on": "On",
6
+ "off": "Off",
7
+ "startGame": "🎲Start Game",
8
+ "changeLang": "Change Lang",
9
+ "english": "English",
10
+ "serbian": "Serbian",
11
+ "MAX": "MAX",
12
+ "MIN": "MIN",
13
+ "straight": "Straight",
14
+ "threeOf": "ThreeOf",
15
+ "fullhouse": "FULLH",
16
+ "help": "HELP",
17
+ "roll":"ROLL DICES",
18
+ "settings": "Settings",
19
+ "hand": "Hand",
20
+ "cornerText": "🎲",
21
+ "poker":"Poker",
22
+ "jamb":"Jamb",
23
+ "final":"Final Σ",
24
+ "hide": "HIDE",
25
+ "sounds": "Sounds",
26
+ "welcomeMsg": "Welcome here, <br> open source project 🎲 Ultimate Yahtzee game <br> download from "
27
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "changeTheme": "Promeni Temu",
3
+ "yes": "Da",
4
+ "no": "Ne",
5
+ "on": "Ukljuci",
6
+ "off": "Iskljuci",
7
+ "startGame": "🎲Pokreni igru",
8
+ "changeLang": "Promeni Jezik",
9
+ "english": "Engleski",
10
+ "serbian": "Srpski",
11
+ "MAX": "MAKS",
12
+ "MIN": "MIN",
13
+ "straight": "Kenta",
14
+ "threeOf": "Triling",
15
+ "fullhouse": "FUL",
16
+ "help": "Pomoć",
17
+ "roll": "Igraj",
18
+ "settings": "Podešavanja",
19
+ "hand": "Ručno",
20
+ "cornerText": "zlatna",
21
+ "poker":"Poker",
22
+ "jamb":"Jamb",
23
+ "final":"Konačna Σ",
24
+ "hide": "Zatvori",
25
+ "sounds": "Zvuk",
26
+ "welcomeMsg": "Dobro došli, <br> otvoren izvori kod 🎲 Ultimate Jamb igra <br> Pokupi kod: "
27
+ }