Skip to content

Commit 8d8d04b

Browse files
committed
Added NavMesh
1 parent 35d65e3 commit 8d8d04b

5 files changed

Lines changed: 454 additions & 15 deletions

File tree

index.html

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ <h4>Sword Attack</h4>
5555
<h4>Text Popup Area</h4>
5656
<li><a href="phaser/signBoard/">Text popup when near signboard</a></li>
5757

58+
<h4>NavMesh Path Finder</h4>
59+
<li><a href="phaser/navMesh/">Click mouse to goto location</a></li>
60+
5861
<h4>Scenes Examples</h4>
5962
<li><a href="phaser/scene-levels/">Scene Levels 1 to 9</a></li>
6063
<li><a href="phaser/scene-levels-buttons/">Scene Levels with Buttons</a></li>
@@ -231,7 +234,7 @@ <h4>Others Style</h4>
231234
<li><a href="https://22ndteam.github.io/js/Mexplorer/game/">Joel (Maze) </a></li>
232235
<li><a href="https://sdral.github.io/js/MazeProblem/">Sandra (Maze)</a></li>
233236
<li><a href="https://kiki0307.github.io/js/DrobinChallenge/">Kiki (Drop) </a></li>
234-
<li><a href="https://thejazzcollosal.github.io/SteadyGame/Steady/">Steady (Platform)</a></li>
237+
<li><a href="https://thejazzcollosal.github.io/SteadyGame/Steady/">Thejas Steady (Platform)</a></li>
235238

236239

237240
<H2>p5.js</H2>
@@ -273,18 +276,6 @@ <H2>p5.js</H2>
273276
<li><a href="p5/analogDigitalClock">A Million Times Clock</a></li>
274277
<BR>
275278

276-
<P2>P5 Play</P2>
277-
<li><a href="p5/space_shooter/">Space Shooter</a></li>
278-
<BR>
279-
280-
<P2>Collide 2D</P2>
281-
<li><a href="p5/collide2D/">Collide 2D</a></li>
282-
<BR>
283-
284-
<P2>Random</P2>
285-
<li><a href="p5/random_donut">Random donut</a></li>
286-
<li><a href="p5/random_square">Random square</a></li>
287-
288279
<BR>
289280
<BR>
290281
<script src="p5/fractal_Invaders/sketch.js"></script>

phaser/navMesh/assets/NavMeshMap.tmj

Lines changed: 386 additions & 0 deletions
Large diffs are not rendered by default.

phaser/navMesh/assets/NavMeshMap.tmx

Lines changed: 62 additions & 0 deletions
Large diffs are not rendered by default.

phaser/navMesh/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta http-equiv="Expires" content="0" />
66

77
<head>
8-
<title>Raffles College KL 2D maps</title>
8+
<title>navNesh Demo</title>
99

1010
<script type="text/javascript" src="../phaser.min.js"></script>
1111
<script type="text/javascript" src="phaser-navmesh-plugin.js"></script>

phaser/navMesh/world.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class world extends Phaser.Scene {
1010

1111
preload() {
1212
// Step 1, load JSON
13-
this.load.tilemapTiledJSON("worldmap", "assets/RaffleskMesh.tmj");
13+
this.load.tilemapTiledJSON("worldmap", "assets/NavMeshMap.tmj");
1414

1515
// // Step 2 : Preload any images here, nickname, filename
1616

0 commit comments

Comments
 (0)