From 37d0c1944b3878129fb4773a05419cceb0d65690 Mon Sep 17 00:00:00 2001 From: chasmiccoder Date: Fri, 11 Feb 2022 18:40:29 +0530 Subject: [PATCH] Added sumona, shreyas,fixed walls,misc --- images/shreyas.png | Bin 0 -> 2266 bytes images/sumona.png | Bin 0 -> 1346 bytes images/theRock.png | Bin 0 -> 3083 bytes images/vinamra.png | Bin 0 -> 3187 bytes js/Overworld.js | 4 +-- js/OverworldMap.js | 79 +++++++++++++++++++++++++++++++++++-------- js/gameStatistics.js | 7 ++-- js/npc_routes.js | 11 ++++-- js/walls.js | 8 +++++ 9 files changed, 85 insertions(+), 24 deletions(-) create mode 100644 images/shreyas.png create mode 100644 images/sumona.png create mode 100644 images/theRock.png create mode 100644 images/vinamra.png diff --git a/images/shreyas.png b/images/shreyas.png new file mode 100644 index 0000000000000000000000000000000000000000..dd6a4fd9353ac35dcdf33e1a258da622615ce84b GIT binary patch literal 2266 zcmV<02qpK4P)ng#rUUx=56*Z^UcoR-Pvz;zPukSU%qcQyR$ptC4sh-3M2uMu}Z+*E3@z}vmKW81<-GV z1g`6HZ4s~snnGb~DDlzWNCF~L(o#?hVgc~gg7~%P_{V$l?+5pfvoGi0Wk3J=8#{31 zP38Yy`s!2m_#+Qx`{6hR-u8g3|JQ)Dpte#}0JQwP#z(~iK6&SLcH`m~?B(a5R-OP_ zC+vq7Dg)>9X+u5a*#mwA)reIxY&yMR_|L9!lQ#}XFo7}A1>GDQo; zmTzc5MpTw?=i>*nPn#s5w@n^R)E1gsqiFHEj#LWwVf0#werNgIRV`sbf=j*=X0x{|6 zp+-Zi^Z^Qj*#R~Qz`l#+Q4#z+Q~d8$;SlNr+QM+%@fz&mO}eftxqd!ZCoTvh=R(8< z;j__ciXP`#W11K&l7Prq_7G66WJ!b=NjkG!@p-*4RYp!I^bnS?&L>=j5SFlS zegGnm1(}W|35ZN#3F~~qt|+`dNoL5He8R4P1j9y_a00Y4L&laDV9FOx4U&M!lqA5G zVd5IQQw7-{fWOQ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DAP!T#PAD`E9yKx)BvsD%3ARV_qL>It)E8dBZ8zj+B{keDKInKJKZ_wc!w!C!m y<&GoiY`L@kI-z-MMNM3~OvbP{`LNd-2Zk(SQiAdQ(vq9-mj?n#L4G1%dj9|5(`(uQ literal 0 HcmV?d00001 diff --git a/images/theRock.png b/images/theRock.png new file mode 100644 index 0000000000000000000000000000000000000000..39f0b103f2aa752d23affdb2ccc5a90beb9c645d GIT binary patch literal 3083 zcmV+m4D|DfP)S zLvNpdgX-_rtLdJ}#|tX}mjA%+t;EF@MG*ty_^%{=E-D}}%UwQv z?(|uj7~W6K%gdopf?)2?sH;)}s~OKwq1{G3$AOYhK+ zI=vw;oE$$Q%h8!Wdf`%UyDj*EsQ2$g{daz7mIivS(DtzhY3;`K*54Zy5Ev^3@V)G+ zkDY9RFI?=Eg?@2tzIY}+*Q@`U8av>@pFkR^diQ{sgW3z7g z+!nkdEIX|y{0Z^-v*Q1NqJ$IT9Bw81bEs4Ff|fqU3&57oBaXtFrr6qG{b&pL>Y8A0 zh~LLOlP!n;Up$WT_ldHTEMQCJkxgOoP5wT%dRN%;`G1A=b3dTR*82Gz`CR#&Tjwrc z=Q{ECvBzVAe-nNmyxxAqJK74^zExS7T_2_%o(DYpT0Pd=u zIlAxK3+?CpdHz4j=>_4rtr85QqEP|ejM1E6`MNb>3@D4uD=x_bPRuTsMQ~T^9!m+w zm6nfjl`JqS%A=rJDCeH4gqEjvIHeA$=;yAe)~JN2fWUNIQdmBElRWm$WALyZzOrm> zJle;je)=dVU`v5@=7GPP+Z&Ak!-~)*j6DC;{0DE|Aso_|AF{-=Z@cz)pMg}w#%ezcX}7K*$s`hp~o~)Yy&C?E1)%^ zXDr|U&h2xTnorIB=9jziTAe(?R+M)9gfc}Q;X3j6Hbfn{u6K(%XB>aC&G$wHQ~@a9 zt6$zAuRe-m@hFF>1fYQb|MOtS@o`-BwU@No9j8ldT;PGy0g?~6TUlxfo4l`W7@&j~u_KQpXelhHI zfAOKOsDQvYDS+F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blo8{`~*x0vM~(a7vp+0jnr#?MnTUT2B+0L3JEfINQy zY65U^3+lMYV(MGL6R5nY-}4aHLZ=x==tplhXAaD0m2bf^n4lo;?m!da$^mIa;K|{Po z!W=S$ZU+RFq#JyU> zR7>ZMI-L8kTwZWV&G&2hwVAkU5ib+7{-|^;%gjOT0bv1KtMQ&CzWnruHPchWdyS=Q zUo-6+f;53|Me&%ml@BJIYw+kUqa5OPT*^xCq60gHNp*=t` ZUjSN&veKUCB1ixL002ovPDHLkV1jsD0~G)O literal 0 HcmV?d00001 diff --git a/js/Overworld.js b/js/Overworld.js index a6c4b6b..dc5b43e 100644 --- a/js/Overworld.js +++ b/js/Overworld.js @@ -9,7 +9,7 @@ class Overworld { // this.gameContainer.style.width = window.innerWidth; // this.gameContainer.style.height = window.innerHeight; - console.log(this.canvas.width, this.canvas.height); + // console.log(this.canvas.width, this.canvas.height); this.context = this.canvas.getContext("2d"); this.map = null; @@ -64,7 +64,7 @@ class Overworld { const match = Object.values(this.map.gameObjects).find(object => { return `${object.x},${object.y}` === `${nextCoords.x},${nextCoords.y}` }); - console.log({match}); + // console.log({match}); let interact_p = document.querySelector(".game-interact"); diff --git a/js/OverworldMap.js b/js/OverworldMap.js index 3dfd3a5..df22889 100644 --- a/js/OverworldMap.js +++ b/js/OverworldMap.js @@ -57,6 +57,8 @@ let allCutsceneSpaces = { ...generateCutsceneSpaces(diya_cutscene_set_of_coords_raw, diyaPath), ...generateCutsceneSpaces(rehber_cutscene_set_of_coords_raw, rehberPath), ...generateCutsceneSpaces(vinamra_cutscene_set_of_coords_raw, vinamraPath), + ...generateCutsceneSpaces(shreyas_cutscene_set_of_coords_raw, shreyasPath), + ...generateCutsceneSpaces(sumona_cutscene_set_of_coords_raw, sumonaPath), // TODO // [utils.asGridCoord(10,17)]: [{events: shreyasPath}], @@ -172,7 +174,7 @@ class OverworldMap { }); // if you press Enter, you'll get the match object depending on your position and direction! - console.log({match}); + // console.log({match}); if(!this.isCutscenePlaying && match && match.talking.length) { this.startCutscene(match.talking[0].events) @@ -228,8 +230,17 @@ class OverworldMap { } } - + else if(shreyas_cutscene_set_of_coords.includes(hero_tile)) { + for(let i = 0; i < shreyas_cutscene_set_of_coords.length; i++) { + delete this.cutsceneSpaces[shreyas_cutscene_set_of_coords[i]]; + } + } + else if(sumona_cutscene_set_of_coords.includes(hero_tile)) { + for(let i = 0; i < sumona_cutscene_set_of_coords.length; i++) { + delete this.cutsceneSpaces[sumona_cutscene_set_of_coords[i]]; + } + } } addWall(x,y) { @@ -256,8 +267,8 @@ window.OverworldMaps = { isPlayerControlled: true, src: "./images/Hero.png", useShadow: true, - x: utils.withGrid(15), // Starting point: 28,32 - y: utils.withGrid(24), + x: utils.withGrid(28), // Starting point: 28,31 + y: utils.withGrid(31), }), npcA: new Person({ @@ -443,7 +454,7 @@ window.OverworldMaps = { vinamra: new Person({ x: utils.withGrid(23), y: utils.withGrid(20), - src: "./images/brownGuy1.png", + src: "./images/vinamra.png", useShadow: true, behaviorLoop: [ {type: "stand", direction: "left", time: 800}, @@ -463,7 +474,7 @@ window.OverworldMaps = { shreyas: new Person({ x: utils.withGrid(9), y: utils.withGrid(20), - src: "./images/brownGuy1.png", + src: "./images/shreyas.png", useShadow: true, behaviorLoop: [ {type: "stand", direction: "left", time: 800}, @@ -481,6 +492,46 @@ window.OverworldMaps = { ] }), + theRock: new Person({ + x: utils.withGrid(38), + y: utils.withGrid(54), + src: "./images/theRock.png", + useShadow: true, + behaviorLoop: [ + {type: "stand", direction: "down", time: 100} + ], + talking: [ + { + events: [ + {type: "textMessage", text: "Dwayne: It's about drive, it's about power", faceHero: "theRock"}, + {type: "textMessage", text: "We stay hungry, we devour!", faceHero: "theRock"}, + {type: "textMessage", text: "Put in the work, put in the hour", faceHero: "theRock"}, + {type: "textMessage", text: "To take what's ours!!", faceHero: "theRock"}, + ] + }, + ] + }), + + sumona: new Person({ + x: utils.withGrid(25), + y: utils.withGrid(37), + src: "./images/sumona.png", + useShadow: true, + behaviorLoop: [ + {type: "stand", direction: "left", time: 800}, + {type: "stand", direction: "down", time: 800}, + {type: "stand", direction: "right", time: 1200}, + {type: "stand", direction: "down", time: 300} + ], + talking: [ + { + events: [ + {type: "textMessage", text: "It's about drive, it's about power", faceHero: "sumona"}, + ] + }, + ] + }), + twitterPerson1: getRoute(31,40,"Twitter", "https://twitter.com/ACM_VIT"), twitterPerson2: getRoute(32,40,"Twitter", "https://twitter.com/ACM_VIT"), @@ -496,14 +547,13 @@ window.OverworldMaps = { whatsappPerson2: getRoute(46,32,"Kick Start Learn Program", "https://with.acmvit.in/ksl"), treasureBox1: getTreasureBox(21,47,1), - treasureBox2: getTreasureBox(-2,37,2), - treasureBox3: getTreasureBox(44,32,3), - treasureBox4: getTreasureBox(32,19,4), - treasureBox5: getTreasureBox(26,19,5), - treasureBox6: getTreasureBox(43,18,6), - treasureBox7: getTreasureBox(15,68,7), - treasureBox8: getTreasureBox(37,50,8), - treasureBox9: getTreasureBox(12,2,9), + treasureBox2: getTreasureBox(44,32,2), + treasureBox3: getTreasureBox(32,19,3), + treasureBox4: getTreasureBox(26,19,4), + treasureBox5: getTreasureBox(43,18,5), + treasureBox6: getTreasureBox(15,68,6), + treasureBox7: getTreasureBox(37,50,7), + treasureBox8: getTreasureBox(12,2,8), }, walls: WALLS, @@ -511,6 +561,5 @@ window.OverworldMaps = { ...allCutsceneSpaces, ...allRedirects, }, - }, } diff --git a/js/gameStatistics.js b/js/gameStatistics.js index a3860bb..5636fed 100644 --- a/js/gameStatistics.js +++ b/js/gameStatistics.js @@ -4,7 +4,7 @@ const renderStats = () => { let div = document.querySelector(".game-statistics"); let name = document.createElement("p"); name.setAttribute("id", "player_stats_p") - name.innerHTML = `Collected ${applicantData.treasuresObtained.size || 0}/9 treasures`; + name.innerHTML = `Collected ${applicantData.treasuresObtained.size || 0}/8 treasures`; div.appendChild(name); div = document.querySelector(".game-interact"); @@ -12,13 +12,10 @@ const renderStats = () => { interact.setAttribute("id", "game_interact_p"); interact.innerHTML = `Press 'Enter' to interact!`; div.appendChild(interact); - - - } // update when the player unlocks a chest const updateStats = () => { let name = document.getElementById("player_stats_p"); - name.innerHTML = `Collected ${applicantData.treasuresObtained.size}/9 treasures`; + name.innerHTML = `Collected ${applicantData.treasuresObtained.size}/8 treasures`; } \ No newline at end of file diff --git a/js/npc_routes.js b/js/npc_routes.js index dce15a3..ed86d91 100644 --- a/js/npc_routes.js +++ b/js/npc_routes.js @@ -124,8 +124,15 @@ let shreyas_cutscene_set_of_coords_raw = [[10,17],[11,17],[11,18],[11,19],[11,20 let shreyas_cutscene_set_of_coords = getCutsceneSetOfCoords(shreyas_cutscene_set_of_coords_raw); - - +X = "sumona" +let sumonaPath = [ + walkUp(X),walkRight(X),walkRight(X),walkRight(X),walkUp(X),standUp(X,200), + {type: "textMessage", text:"Welcome Message!"}, + walkDown(X),walkLeft(X),walkLeft(X),walkLeft(X),walkDown(X),standUp(X,200), +]; + +let sumona_cutscene_set_of_coords_raw = [[27,33],[28,33],[29,33]] +let sumona_cutscene_set_of_coords = getCutsceneSetOfCoords(sumona_cutscene_set_of_coords_raw); diff --git a/js/walls.js b/js/walls.js index a2fcc7f..759239e 100644 --- a/js/walls.js +++ b/js/walls.js @@ -1,3 +1,4 @@ +// critical walls added and removed, so change this with care const WALLS = { [utils.asGridCoord(12,2)]: true, [utils.asGridCoord(13,2)]: true, @@ -554,4 +555,11 @@ const WALLS = { [utils.asGridCoord(24,72)]: true, [utils.asGridCoord(25,72)]: true, [utils.asGridCoord(26,72)]: true, + + [utils.asGridCoord(17,44)]: true, + [utils.asGridCoord(17,45)]: true, + [utils.asGridCoord(18,45)]: true, + [utils.asGridCoord(19,45)]: true, + [utils.asGridCoord(20,45)]: true, + [utils.asGridCoord(21,45)]: true, };