balloon fix

master
Denis Ranneft 1 month ago
parent a711a26b52
commit 272d8a492c

@ -1,5 +1,5 @@
{
"version": 26,
"version": 27,
"assetsRoot": "frontend/assets",
"note": "file paths relative to frontend/assets. Rest camp: prop.camp_tent/fire/bag.v0 (wild rest). Other props + heroes + NPC.",
"textures": {
@ -1327,12 +1327,14 @@
"enemy.bandit_l8_9_ruins.south": {
"file": "enemies/enemy.bandit_l8_9_ruins.south.png",
"kind": "map_object",
"rotation": "south"
"rotation": "south",
"pixellabObjectId": "81bea4b3-9fbe-4a8f-a310-2c3881b456f0"
},
"enemy.bandit_l8_9_canyon.south": {
"file": "enemies/enemy.bandit_l8_9_canyon.south.png",
"kind": "map_object",
"rotation": "south"
"rotation": "south",
"pixellabObjectId": "e2a994c2-8c61-47e1-bdca-0f6b9f65d71f"
},
"enemy.bandit_l10_11_canyon.south": {
"file": "enemies/enemy.bandit_l10_11_canyon.south.png",
@ -1471,32 +1473,38 @@
"enemy.basilisk_l12_13_forest.south": {
"file": "enemies/enemy.basilisk_l12_13_forest.south.png",
"kind": "map_object",
"rotation": "south"
"rotation": "south",
"pixellabObjectId": "536acf93-be00-4401-9c1f-04b144171e13"
},
"enemy.basilisk_l12_13_ruins.south": {
"file": "enemies/enemy.basilisk_l12_13_ruins.south.png",
"kind": "map_object",
"rotation": "south"
"rotation": "south",
"pixellabObjectId": "7ab6cf3a-f7e1-4dec-9aba-20530d621fcb"
},
"enemy.basilisk_l14_15_ruins.south": {
"file": "enemies/enemy.basilisk_l14_15_ruins.south.png",
"kind": "map_object",
"rotation": "south"
"rotation": "south",
"pixellabObjectId": "ae2d8c14-0fde-4035-ac58-88291c66f231"
},
"enemy.basilisk_l14_15_canyon.south": {
"file": "enemies/enemy.basilisk_l14_15_canyon.south.png",
"kind": "map_object",
"rotation": "south"
"rotation": "south",
"pixellabObjectId": "73b904b8-65d7-492e-9258-37bc7a71d3eb"
},
"enemy.basilisk_l16_17_canyon.south": {
"file": "enemies/enemy.basilisk_l16_17_canyon.south.png",
"kind": "map_object",
"rotation": "south"
"rotation": "south",
"pixellabObjectId": "71254bd1-edb3-43c2-bd60-af50b8705d06"
},
"enemy.basilisk_l16_17_swamp.south": {
"file": "enemies/enemy.basilisk_l16_17_swamp.south.png",
"kind": "map_object",
"rotation": "south"
"rotation": "south",
"pixellabObjectId": "2800d53f-e63e-41b2-8a1f-c009ea094f66"
},
"enemy.basilisk_l18_19_volcanic.south": {
"file": "enemies/enemy.basilisk_l18_19_volcanic.south.png",

@ -1174,7 +1174,7 @@ export class GameRenderer {
const iso = worldToScreen(wx, wy);
const bx = iso.x;
const by = iso.y - 52; // above hero head
const by = iso.y - 100; // above hero head
txt.text = text;
txt.style.wordWrapWidth = 210;
@ -1202,7 +1202,7 @@ export class GameRenderer {
]);
gfx.fill({ color: 0xffffff, alpha: 0.92 * alpha });
gfx.zIndex = by + 200; // above hero
gfx.zIndex = by + 400; // above hero
// Text position (centered in bubble)
txt.x = bx;
@ -2121,7 +2121,7 @@ export class GameRenderer {
continue;
}
const elapsed = now - item.startMs;
const alpha = Math.min(1, elapsed / 200);;
const alpha = Math.min(1, elapsed / 200);
if (alpha <= 0) {
txt.visible = false;
gfx.clear();
@ -2129,7 +2129,7 @@ export class GameRenderer {
}
const iso = worldToScreen(item.wx, item.wy);
const bx = iso.x;
const by = iso.y - 48;
const by = iso.y - 88; // above hero head
txt.text = item.text;
txt.style.fill = 0x1a1a1a;
txt.style.stroke = { color: 0x000000, width: 0 };

Loading…
Cancel
Save