create test map

This commit is contained in:
Hanusiak Piotr 2022-02-08 11:04:12 +01:00
parent 31f3b2b48e
commit a53cbbff34
3 changed files with 89 additions and 0 deletions

View File

@ -94,6 +94,7 @@ export class GameMap {
depth = DEPTH_OVERLAY_INDEX; depth = DEPTH_OVERLAY_INDEX;
} }
} }
console.log(this.phaserLayers);
for (const tileset of map.tilesets) { for (const tileset of map.tilesets) {
tileset?.tiles?.forEach((tile) => { tileset?.tiles?.forEach((tile) => {
if (tile.properties) { if (tile.properties) {

View File

@ -32,6 +32,14 @@
<a href="#" class="testLink" data-testmap="jitsi_custom_url.json" target="_blank">Testing jitsiUrl property</a> <a href="#" class="testLink" data-testmap="jitsi_custom_url.json" target="_blank">Testing jitsiUrl property</a>
</td> </td>
</tr> </tr>
<tr>
<td>
<input type="radio" name="test-animated-tiles"> Success <input type="radio" name="test-animated-tiles"> Failure <input type="radio" name="test-animated-tiles" checked> Pending
</td>
<td>
<a href="#" class="testLink" data-testmap="parallax.json" target="_blank">Test parallax effect</a>
</td>
</tr>
<tr> <tr>
<td> <td>
<input type="radio" name="test-animated-tiles"> Success <input type="radio" name="test-animated-tiles"> Failure <input type="radio" name="test-animated-tiles" checked> Pending <input type="radio" name="test-animated-tiles"> Success <input type="radio" name="test-animated-tiles"> Failure <input type="radio" name="test-animated-tiles" checked> Pending

80
maps/tests/parallax.json Normal file

File diff suppressed because one or more lines are too long