Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosvinix committed Nov 24, 2024
1 parent 7d674d0 commit 8944a93
Show file tree
Hide file tree
Showing 13 changed files with 47 additions and 25 deletions.
4 changes: 2 additions & 2 deletions english/level1/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<html lang="en">
<head><script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.2112a226.js"></script>
<head><script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.e186b64d.js"></script>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down Expand Up @@ -166,5 +166,5 @@ <h5 class="modal-title" id="logModalLabel">To complete Level 1, inform:</h5>
</div>
</body>
<script type="module" src="https://avrgroup.github.io/ELoS_test/level1/index.fb1fd881.js"></script>
<script type="module" src="https://avrgroup.github.io/ELoS_test/level1/index.ad630993.js"></script>
<script type="module" src="https://avrgroup.github.io/ELoS_test/level1/index.c94e5fda.js"></script>
</html>
4 changes: 2 additions & 2 deletions english/level2/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<html lang="en">
<head><script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.2112a226.js"></script><script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.8c12255d.js"></script>
<head><script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.e186b64d.js"></script><script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.8c12255d.js"></script>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down Expand Up @@ -179,5 +179,5 @@ <h5 class="modal-title" id="logModalLabel">To complete Level 2, inform:</h5>
</div>
</body>
<script type="module" src="https://avrgroup.github.io/ELoS_test/level1/index.fb1fd881.js"></script>
<script type="module" src="https://avrgroup.github.io/ELoS_test/level2/index.20a32c69.js"></script>
<script type="module" src="https://avrgroup.github.io/ELoS_test/level2/index.9c7f324b.js"></script>
</html>
4 changes: 2 additions & 2 deletions english/level3/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<html lang="en">
<head><script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.2112a226.js"></script><script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.8c12255d.js"></script>
<head><script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.e186b64d.js"></script><script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.8c12255d.js"></script>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down Expand Up @@ -181,5 +181,5 @@ <h5 class="modal-title" id="logModalLabel">To complete Level 3, inform:</h5>
</div>
</body>
<script type="module" src="https://avrgroup.github.io/ELoS_test/level1/index.fb1fd881.js"></script>
<script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.4154e571.js"></script>
<script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.9c754a4e.js"></script>
</html>
4 changes: 2 additions & 2 deletions english/level4/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<html lang="en">
<head><script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.2112a226.js"></script><script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.8c12255d.js"></script>
<head><script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.e186b64d.js"></script><script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.8c12255d.js"></script>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down Expand Up @@ -186,5 +186,5 @@ <h5 class="modal-title" id="logModalLabel">To complete Level 4, inform:</h5>
</div>
</body>
<script type="module" src="https://avrgroup.github.io/ELoS_test/level1/index.fb1fd881.js"></script>
<script type="module" src="https://avrgroup.github.io/ELoS_test/level4/index.21387789.js"></script>
<script type="module" src="https://avrgroup.github.io/ELoS_test/level4/index.8dbd28ef.js"></script>
</html>
2 changes: 1 addition & 1 deletion level1/index.ad630993.js → level1/index.c94e5fda.js
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,7 @@ module.exports = new URL("../" + (parcelRequire("2JpsI")).resolve("64GOt"), impo

var $13dd7c15c1a9b0d1$exports = {};

(parcelRequire("2JpsI")).register(JSON.parse('{"ii9Sb":"index.ad630993.js","64GOt":"stone_wallLvl1.e00cd434.jpg","6oRwV":"index.2112a226.js"}'));
(parcelRequire("2JpsI")).register(JSON.parse('{"ii9Sb":"index.c94e5fda.js","64GOt":"stone_wallLvl1.e00cd434.jpg","6oRwV":"index.e186b64d.js"}'));


parcelRequire("hO50i");
Expand Down
4 changes: 2 additions & 2 deletions level1/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<html lang="pt-BR">
<head><script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.2112a226.js"></script>
<head><script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.e186b64d.js"></script>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down Expand Up @@ -188,5 +188,5 @@ <h5 class="modal-title" id="logModalLabel">Para finalizar o Nível 1, informe:</
</div>
</body>
<script type="module" src="https://avrgroup.github.io/ELoS_test/level1/index.fb1fd881.js"></script>
<script type="module" src="https://avrgroup.github.io/ELoS_test/level1/index.ad630993.js"></script>
<script type="module" src="https://avrgroup.github.io/ELoS_test/level1/index.c94e5fda.js"></script>
</html>
2 changes: 1 addition & 1 deletion level2/index.20a32c69.js → level2/index.9c7f324b.js
Original file line number Diff line number Diff line change
Expand Up @@ -2799,7 +2799,7 @@ module.exports = new URL("../" + (parcelRequire("2JpsI")).resolve("hIuM1"), impo

var $d63c045a2be9f751$exports = {};

(parcelRequire("2JpsI")).register(JSON.parse('{"gktNi":"index.20a32c69.js","GGIiK":"fire.e088cc30.png","2x2Z6":"stone.543880d2.jpg","hIuM1":"stoneWallLvl2.bde5c6a1.png","6oRwV":"index.2112a226.js","hLHLl":"index.8c12255d.js"}'));
(parcelRequire("2JpsI")).register(JSON.parse('{"gktNi":"index.9c7f324b.js","GGIiK":"fire.e088cc30.png","2x2Z6":"stone.543880d2.jpg","hIuM1":"stoneWallLvl2.bde5c6a1.png","6oRwV":"index.e186b64d.js","hLHLl":"index.8c12255d.js"}'));


parcelRequire("apYFO");
Expand Down
4 changes: 2 additions & 2 deletions level2/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<html lang="pt-BR">
<head><script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.2112a226.js"></script><script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.8c12255d.js"></script>
<head><script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.e186b64d.js"></script><script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.8c12255d.js"></script>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down Expand Up @@ -201,5 +201,5 @@ <h5 class="modal-title" id="logModalLabel">Para finalizar o Nível 2, informe:</
</div>
</body>
<script type="module" src="https://avrgroup.github.io/ELoS_test/level1/index.fb1fd881.js"></script>
<script type="module" src="https://avrgroup.github.io/ELoS_test/level2/index.20a32c69.js"></script>
<script type="module" src="https://avrgroup.github.io/ELoS_test/level2/index.9c7f324b.js"></script>
</html>
2 changes: 1 addition & 1 deletion level3/index.4154e571.js → level3/index.9c754a4e.js
Original file line number Diff line number Diff line change
Expand Up @@ -3293,7 +3293,7 @@ module.exports = new URL("../" + (parcelRequire("2JpsI")).resolve("hEG10"), impo

var $2d826877525ccbf4$exports = {};

(parcelRequire("2JpsI")).register(JSON.parse('{"77jqI":"index.4154e571.js","hEG10":"metalWallLvl3.c6e3c749.png","6oRwV":"index.2112a226.js","hLHLl":"index.8c12255d.js"}'));
(parcelRequire("2JpsI")).register(JSON.parse('{"77jqI":"index.9c754a4e.js","hEG10":"metalWallLvl3.c6e3c749.png","6oRwV":"index.e186b64d.js","hLHLl":"index.8c12255d.js"}'));


parcelRequire("2RZ2r");
Expand Down
32 changes: 27 additions & 5 deletions level3/index.2112a226.js → level3/index.e186b64d.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,10 @@ $parcel$export(module.exports, "PointLight", () => $305c1a2873b5da70$export$4c9c
$parcel$export(module.exports, "DirectionalLight", () => $305c1a2873b5da70$export$3fea33cc9972c868);
$parcel$export(module.exports, "LoaderUtils", () => $305c1a2873b5da70$export$b5d2dc08d867e41a);
$parcel$export(module.exports, "ImageBitmapLoader", () => $305c1a2873b5da70$export$52286b55c4a9b51f);
$parcel$export(module.exports, "AudioLoader", () => $305c1a2873b5da70$export$d8d5fccfbf47714e);
$parcel$export(module.exports, "Clock", () => $305c1a2873b5da70$export$9735c82c4bae3302);
$parcel$export(module.exports, "AudioListener", () => $305c1a2873b5da70$export$8a1b810c6fde8951);
$parcel$export(module.exports, "Audio", () => $305c1a2873b5da70$export$153755f98d9861de);
$parcel$export(module.exports, "PropertyBinding", () => $305c1a2873b5da70$export$7bf70fcf9f891893);
$parcel$export(module.exports, "Spherical", () => $305c1a2873b5da70$export$d712cd887b4a00f7);
$parcel$export(module.exports, "GridHelper", () => $305c1a2873b5da70$export$3875d39926561055);
Expand Down Expand Up @@ -60300,6 +60303,20 @@ class $229855a44a9d0678$export$2e2bcd8739ae039 {
this.crystals = [];
this.doors = [];
}
playAudio(fileName) {
const listener = new $49pUz.AudioListener();
const audio = new $49pUz.Audio(listener);
const audioLoader = new $49pUz.AudioLoader();
const audioPath = new URL(`../../../assets/audios/${fileName}.wav`, "file:///src/js/game/three/GridMapHelper.js").toString();
audioLoader.load(audioPath, function(buffer) {
audio.setBuffer(buffer);
audio.setLoop(false);
audio.setVolume(0.5);
audio.play();
}, undefined, function(error) {
return;
});
}
createGridPlane() {
const planeGeometry = new $49pUz.PlaneGeometry(this.getMultiplier() * this.divisions, this.getMultiplier() * this.divisions, this.divisions, this.divisions);
const grid = new $49pUz.GridHelper(this.getMultiplier() * this.divisions, this.divisions, this.divisionsColor, this.divisionsColor);
Expand Down Expand Up @@ -60411,6 +60428,7 @@ class $229855a44a9d0678$export$2e2bcd8739ae039 {
let alpha2 = 0.1;
let thisTrap = this.traps[i].obj;
activateTrap();
this.playAudio("trap");
function activateTrap() {
if (thisTrap.spikes[4].position.y.toFixed(1) < 1) {
alpha2 += 0.05;
Expand Down Expand Up @@ -60438,8 +60456,10 @@ class $229855a44a9d0678$export$2e2bcd8739ae039 {
fireCollision(position) {
const activeFires = this.fires.filter((fire)=>fire.active == true);
for(let i = 0; i < activeFires.length; i++){
if (this.getXCoordFromGlobalPosition(position.x) == activeFires[i].x && this.getZCoordFromGlobalPosition(position.z) == activeFires[i].z) return new $49pUz.Vector3(this.getGlobalXPositionFromCoord(activeFires[i].x), position.y, this.getGlobalZPositionFromCoord(activeFires[i].z));
else continue;
if (this.getXCoordFromGlobalPosition(position.x) == activeFires[i].x && this.getZCoordFromGlobalPosition(position.z) == activeFires[i].z) {
this.playAudio("fire");
return new $49pUz.Vector3(this.getGlobalXPositionFromCoord(activeFires[i].x), position.y, this.getGlobalZPositionFromCoord(activeFires[i].z));
} else continue;
}
return false;
}
Expand Down Expand Up @@ -60468,8 +60488,10 @@ class $229855a44a9d0678$export$2e2bcd8739ae039 {
laserCollision(position) {
const laserFiltered = this.lasers.filter((laser)=>laser.active == true);
for(let i = 0; i < laserFiltered.length; i++){
if (this.getXCoordFromGlobalPosition(position.x) == laserFiltered[i].x && this.getZCoordFromGlobalPosition(position.z) == laserFiltered[i].z) return new $49pUz.Vector3(this.getGlobalXPositionFromCoord(laserFiltered[i].x), position.y, this.getGlobalZPositionFromCoord(laserFiltered[i].z));
else continue;
if (this.getXCoordFromGlobalPosition(position.x) == laserFiltered[i].x && this.getZCoordFromGlobalPosition(position.z) == laserFiltered[i].z) {
this.playAudio("laser");
return new $49pUz.Vector3(this.getGlobalXPositionFromCoord(laserFiltered[i].x), position.y, this.getGlobalZPositionFromCoord(laserFiltered[i].z));
} else continue;
}
return false;
}
Expand Down Expand Up @@ -60842,6 +60864,6 @@ function $a2d58e902e72a3c2$export$e6fe271705b4a981(langSelector, code) {

var $23e05de2726fa510$exports = {};

(parcelRequire("2JpsI")).register(JSON.parse('{"6oRwV":"index.2112a226.js","gkOf2":"eve.1d379c98.glb","hpjRp":"crystal.06b47171.jpg","9XNcj":"crystal.b012d479.obj"}'));
(parcelRequire("2JpsI")).register(JSON.parse('{"6oRwV":"index.e186b64d.js","gkOf2":"eve.1d379c98.glb","hpjRp":"crystal.06b47171.jpg","9XNcj":"crystal.b012d479.obj"}'));


4 changes: 2 additions & 2 deletions level3/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<html lang="pt-BR">
<head><script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.2112a226.js"></script><script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.8c12255d.js"></script>
<head><script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.e186b64d.js"></script><script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.8c12255d.js"></script>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down Expand Up @@ -203,5 +203,5 @@ <h5 class="modal-title" id="logModalLabel">Para finalizar o Nível 3, informe:</
</div>
</body>
<script type="module" src="https://avrgroup.github.io/ELoS_test/level1/index.fb1fd881.js"></script>
<script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.4154e571.js"></script>
<script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.9c754a4e.js"></script>
</html>
2 changes: 1 addition & 1 deletion level4/index.21387789.js → level4/index.8dbd28ef.js
Original file line number Diff line number Diff line change
Expand Up @@ -4717,7 +4717,7 @@ module.exports = new URL("../" + (parcelRequire("2JpsI")).resolve("6itYu"), impo

var $17fc8c101e899477$exports = {};

(parcelRequire("2JpsI")).register(JSON.parse('{"jv3CK":"index.21387789.js","cWmqK":"door2.e849dc7b.jpg","6itYu":"metalWallLvl4.75a18037.jpg","6oRwV":"index.2112a226.js","hLHLl":"index.8c12255d.js"}'));
(parcelRequire("2JpsI")).register(JSON.parse('{"jv3CK":"index.8dbd28ef.js","cWmqK":"door2.e849dc7b.jpg","6itYu":"metalWallLvl4.75a18037.jpg","6oRwV":"index.e186b64d.js","hLHLl":"index.8c12255d.js"}'));


parcelRequire("1mCsO");
Expand Down
4 changes: 2 additions & 2 deletions level4/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<html lang="pt-BR">
<head><script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.2112a226.js"></script><script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.8c12255d.js"></script>
<head><script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.e186b64d.js"></script><script type="module" src="https://avrgroup.github.io/ELoS_test/level3/index.8c12255d.js"></script>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down Expand Up @@ -208,7 +208,7 @@ <h5 class="modal-title" id="logModalLabel">Para finalizar o Nível 4, informe:</
</div>
</body>
<script type="module" src="https://avrgroup.github.io/ELoS_test/level1/index.fb1fd881.js"></script>
<script type="module" src="https://avrgroup.github.io/ELoS_test/level4/index.21387789.js"></script>
<script type="module" src="https://avrgroup.github.io/ELoS_test/level4/index.8dbd28ef.js"></script>

<script>function checkClose() {
if (ok) return "Tem certeza que deseja sair?";
Expand Down

0 comments on commit 8944a93

Please sign in to comment.