Add imagemap that uses a prerendered background

This commit is contained in:
2026-05-13 08:03:40 -04:00
parent 6a518b562f
commit 41d0646dba
6 changed files with 108 additions and 4 deletions

BIN
assets/ffbg2-scaled.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 484 KiB

99
assets/imagemap.tmj Normal file
View File

@@ -0,0 +1,99 @@
{ "compressionlevel":-1,
"height":48,
"infinite":false,
"layers":[
{
"id":4,
"image":"../assets/ffbg2-scaled.png",
"name":"Image Layer 1",
"offsetx":5.6843418860808e-14,
"offsety":2.01612903225805,
"opacity":1,
"type":"imagelayer",
"visible":true,
"x":0,
"y":0
},
{
"draworder":"topdown",
"id":2,
"locked":true,
"name":"Object Layer 1",
"objects":[
{
"gid":147,
"height":16,
"id":1,
"name":"player",
"properties":[
{
"name":"character",
"type":"string",
"value":"little guy"
},
{
"name":"state",
"type":"int",
"value":24
}],
"rotation":0,
"type":"actor",
"visible":true,
"width":16,
"x":440.510088317656,
"y":140.347239175702
},
{
"gid":149,
"height":16,
"id":2,
"name":"npc",
"properties":[
{
"name":"character",
"type":"string",
"value":"little guy"
},
{
"name":"state",
"type":"int",
"value":272
}],
"rotation":0,
"type":"actor",
"visible":true,
"width":16,
"x":261.106052990594,
"y":156.523012852732
}],
"opacity":1,
"type":"objectgroup",
"visible":true,
"x":0,
"y":0
}],
"nextlayerid":5,
"nextobjectid":3,
"orientation":"orthogonal",
"renderorder":"right-down",
"tiledversion":"1.8.2",
"tileheight":16,
"tilesets":[
{
"columns":48,
"firstgid":1,
"image":"../assets/World_A1.png",
"imageheight":576,
"imagewidth":768,
"margin":0,
"name":"World_A1",
"spacing":0,
"tilecount":1728,
"tileheight":16,
"tilewidth":16
}],
"tilewidth":16,
"type":"map",
"version":"1.8",
"width":64
}

7
assets/properties.json Normal file
View File

@@ -0,0 +1,7 @@
{
"properties": {
"some.key.with.a.value": "value",
"game.screenwidth": "640",
"game.screenheight": "480"
}
}