matrix-engine-wgpu 1.0.6 → 1.1.0
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.
- package/.codesandbox/tasks.json +46 -0
- package/.devcontainer/devcontainer.json +22 -0
- package/.github/dependabot.yml +12 -0
- package/REFERENCE.md +3 -5
- package/dev.md +460 -0
- package/empty.js +7 -6
- package/examples/games/jamb/jamb.js +1127 -0
- package/examples/load-obj-file.js +65 -28
- package/examples/unlit-textures.js +26 -23
- package/examples.js +35 -3
- package/main.js +442 -48
- package/non-project-files/dev.txt +21 -0
- package/non-project-files/image1.png +0 -0
- package/non-project-files/image6.png +0 -0
- package/package.json +28 -13
- package/public/app.js +11405 -9375
- package/public/css/style.css +371 -110
- package/public/empty.html +1 -1
- package/public/empty.js +9887 -9264
- package/public/examples.html +10 -8
- package/public/examples.js +553 -193
- package/public/index.html +3 -5
- package/public/manifest copy.web +35 -0
- package/public/res/audios/block.mp3 +0 -0
- package/public/res/audios/dice1.mp3 +0 -0
- package/public/res/audios/dice2.mp3 +0 -0
- package/public/res/audios/start.mp3 +0 -0
- package/public/res/meshes/jamb/bg.blend +0 -0
- package/public/res/meshes/jamb/bg.blend1 +0 -0
- package/public/res/meshes/jamb/bg.mtl +12 -0
- package/public/res/meshes/jamb/bg.obj +17 -0
- package/public/res/meshes/jamb/bg.png +0 -0
- package/public/res/meshes/jamb/dice-default.png +0 -0
- package/public/res/meshes/jamb/dice-mark.png +0 -0
- package/public/res/meshes/jamb/dice.mtl +12 -0
- package/public/res/meshes/jamb/dice.obj +40 -0
- package/public/res/meshes/jamb/dice.png +0 -0
- package/public/res/meshes/jamb/jamb-title.mtl +12 -0
- package/public/res/meshes/jamb/jamb-title.obj +26008 -0
- package/public/res/meshes/jamb/jamb.blend +0 -0
- package/public/res/meshes/jamb/jamb.blend1 +0 -0
- package/public/res/meshes/jamb/logo.png +0 -0
- package/public/res/meshes/jamb/nidzaDice.blend +0 -0
- package/public/res/meshes/jamb/nidzaDice.blend1 +0 -0
- package/public/res/meshes/jamb/pile.blend +0 -0
- package/public/res/meshes/jamb/simpleCube.blend +0 -0
- package/public/res/meshes/jamb/simpleCube.blend1 +0 -0
- package/public/res/meshes/jamb/sounds/roll1.wav +0 -0
- package/public/res/meshes/jamb/text.png +0 -0
- package/public/res/multilang/en.json +27 -0
- package/public/res/multilang/sr.json +27 -0
- package/public/test.html +636 -0
- package/public/three-test.js +165 -0
- package/public/worker.html +1 -1
- package/readme.md +189 -115
- package/src/engine/cube.js +10 -1
- package/src/engine/engine.js +1 -5
- package/src/engine/loader-obj.js +9 -6
- package/src/engine/matrix-class.js +237 -204
- package/src/engine/mesh-obj.js +605 -515
- package/src/engine/raycast-test.js +93 -0
- package/src/engine/utils.js +69 -3
- package/src/multilang/lang.js +35 -0
- package/src/physics/matrix-ammo.js +168 -15
- package/src/shaders/fragment.wgsl.js +4 -2
- package/src/shaders/shaders.js +1 -1
- package/src/shaders/vertexShadow.wgsl.js +1 -1
- package/src/sounds/sounds.js +47 -0
- package/src/world.js +311 -248
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
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
|
+
}
|