From 45cbcded92ec3b77167d8fa34861a5946595ae6c Mon Sep 17 00:00:00 2001 From: Bill Rossi Date: Wed, 11 Jun 2025 03:06:37 -0400 Subject: [PATCH] Load up a brand new map --- index.html | 2 +- rooms/real_outside.tmj | 85 +++++++++++++++++++++++++++++++++++++++ src/assets.js | 3 +- src/game.js | 2 +- tilesets/real_outside.tsj | 14 +++++++ 5 files changed, 103 insertions(+), 3 deletions(-) create mode 100644 rooms/real_outside.tmj create mode 100644 tilesets/real_outside.tsj diff --git a/index.html b/index.html index 5d567a9..ae1cb09 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ - + You need a better browser to play this game. diff --git a/rooms/real_outside.tmj b/rooms/real_outside.tmj new file mode 100644 index 0000000..3480145 --- /dev/null +++ b/rooms/real_outside.tmj @@ -0,0 +1,85 @@ +{ "compressionlevel":-1, + "height":16, + "infinite":false, + "layers":[ + { + "data":[2, 129, 130, 131, 2, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 1, 161, 162, 163, 2, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 1, 193, 194, 195, 2, 2, 2, 1, 2, 2, 2, 2, 1, 1, 1, 1, 1, 2, 1, 2, + 1, 229, 230, 231, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 1, 261, 262, 263, 2, 2, 2, 2, 2, 2, 2, 137, 138, 138, 139, 2, 2, 1, 1, 2, + 2, 2, 2, 2, 2, 8, 9, 9, 9, 10, 2, 169, 170, 170, 171, 2, 1, 1, 2, 2, + 2, 2, 2, 2, 2, 40, 41, 41, 41, 42, 2, 201, 202, 202, 203, 2, 2, 2, 2, 2, + 1, 1, 2, 2, 2, 40, 41, 41, 41, 42, 2, 233, 234, 234, 235, 2, 2, 2, 2, 2, + 2, 1, 1, 2, 2, 72, 73, 73, 73, 74, 2, 265, 266, 266, 267, 2, 2, 2, 2, 2, + 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 1, 1, 2, 1, 2, 1, 2, 2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 2, + 2, 2, 1, 1, 2, 2, 2, 2, 1, 2, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, + 2, 2, 2, 1, 1, 2, 2, 2, 1, 1, 1, 2, 1, 1, 2, 2, 1, 1, 1, 2, + 2, 2, 2, 2, 1, 2, 2, 2, 2, 1, 2, 2, 1, 2, 2, 1, 1, 1, 1, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 2, 2, 1, 2], + "height":16, + "id":1, + "name":"Tile Layer 1", + "opacity":1, + "type":"tilelayer", + "visible":true, + "width":20, + "x":0, + "y":0 + }, + { + "draworder":"topdown", + "id":2, + "name":"Object Layer 1", + "objects":[], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + }, + { + "data":[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 99, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 294, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 4, 4, 4, 4, 5, 0, 0, 0, 0, 0, 0, 97, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 37, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 35, 0, 75, 76, 77, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 35, 0, 0, 0, 0, 0, 0, 290, 0, 293, 0, 0, 3, 68, 68, 68, + 0, 0, 0, 0, 67, 4, 4, 4, 6, 68, 68, 68, 68, 68, 68, 68, 69, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 3, 69, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], + "height":16, + "id":3, + "name":"Tile Layer 2", + "opacity":1, + "type":"tilelayer", + "visible":true, + "width":20, + "x":0, + "y":0 + }], + "nextlayerid":4, + "nextobjectid":1, + "orientation":"orthogonal", + "renderorder":"right-down", + "tiledversion":"1.11.2", + "tileheight":64, + "tilesets":[ + { + "firstgid":1, + "source":"..\/tilesets\/real_outside.tsj" + }], + "tilewidth":64, + "type":"map", + "version":"1.10", + "width":20 +} \ No newline at end of file diff --git a/src/assets.js b/src/assets.js index c424e94..0c74611 100644 --- a/src/assets.js +++ b/src/assets.js @@ -9,7 +9,8 @@ const TILESET_ASSETS = { const ROOM_ASSETS = { sampleRoom: "./rooms/sample_outside.tmj", - sampleInside: "./rooms/sample_inside.tmj" + sampleInside: "./rooms/sample_inside.tmj", + realOutside: "./rooms/real_outside.tmj" } export default class Assets { diff --git a/src/game.js b/src/game.js index aa52f42..d6097df 100644 --- a/src/game.js +++ b/src/game.js @@ -35,7 +35,7 @@ export default class Game { } start() { - this.loadRoom(this.assets.get("sampleRoom")) + this.loadRoom(this.assets.get("realOutside")) requestAnimationFrame(this.loop.bind(this)) } diff --git a/tilesets/real_outside.tsj b/tilesets/real_outside.tsj new file mode 100644 index 0000000..f81afe2 --- /dev/null +++ b/tilesets/real_outside.tsj @@ -0,0 +1,14 @@ +{ "columns":32, + "image":"..\/assets\/outdoor.png", + "imageheight":1024, + "imagewidth":2048, + "margin":0, + "name":"real_outside", + "spacing":0, + "tilecount":512, + "tiledversion":"1.11.2", + "tileheight":64, + "tilewidth":64, + "type":"tileset", + "version":"1.10" +} \ No newline at end of file