From 7c0781bb29ceb0c676a0fe582f2b4209458b4185 Mon Sep 17 00:00:00 2001 From: Denis Ranneft Date: Sat, 4 Apr 2026 04:40:57 +0300 Subject: [PATCH] remove sway for camp --- frontend/public/assets/game/manifest.json | 44 +++++++++++++++-------- frontend/src/game/renderer.ts | 8 ++--- 2 files changed, 32 insertions(+), 20 deletions(-) diff --git a/frontend/public/assets/game/manifest.json b/frontend/public/assets/game/manifest.json index b75679a..9f5427f 100644 --- a/frontend/public/assets/game/manifest.json +++ b/frontend/public/assets/game/manifest.json @@ -1,5 +1,5 @@ { - "version": 34, + "version": 36, "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": { @@ -1205,42 +1205,50 @@ "enemy.titan_l28_29_forest.south": { "file": "enemies/enemy.titan_l28_29_forest.south.png", "kind": "map_object", - "rotation": "south" + "rotation": "south", + "pixellabObjectId": "d67588a7-8021-4e1d-925b-4e55d8cd65e9" }, "enemy.titan_l28_29_ruins.south": { "file": "enemies/enemy.titan_l28_29_ruins.south.png", "kind": "map_object", - "rotation": "south" + "rotation": "south", + "pixellabObjectId": "3b6515cf-e4e1-493a-a27a-3f96f71bfb4a" }, "enemy.titan_l30_31_ruins.south": { "file": "enemies/enemy.titan_l30_31_ruins.south.png", "kind": "map_object", - "rotation": "south" + "rotation": "south", + "pixellabObjectId": "e5c68620-964f-44ac-90d3-c86ba19f9913" }, "enemy.titan_l30_31_canyon.south": { "file": "enemies/enemy.titan_l30_31_canyon.south.png", "kind": "map_object", - "rotation": "south" + "rotation": "south", + "pixellabObjectId": "af134ca2-ed12-475d-8912-ed3f61af0287" }, "enemy.titan_l32_33_canyon.south": { "file": "enemies/enemy.titan_l32_33_canyon.south.png", "kind": "map_object", - "rotation": "south" + "rotation": "south", + "pixellabObjectId": "63379235-01cf-44ea-9b6f-0af9194c97e5" }, "enemy.titan_l32_33_swamp.south": { "file": "enemies/enemy.titan_l32_33_swamp.south.png", "kind": "map_object", - "rotation": "south" + "rotation": "south", + "pixellabObjectId": "c0375309-9b2d-4080-8e58-3a7f2a578cad" }, "enemy.titan_l34_35_volcanic.south": { "file": "enemies/enemy.titan_l34_35_volcanic.south.png", "kind": "map_object", - "rotation": "south" + "rotation": "south", + "pixellabObjectId": "68242f44-5fd5-4251-b04e-d48c16a22a40" }, "enemy.titan_l34_35_astral.south": { "file": "enemies/enemy.titan_l34_35_astral.south.png", "kind": "map_object", - "rotation": "south" + "rotation": "south", + "pixellabObjectId": "3d833165-e7b1-455e-b95e-b9472b1970be" }, "enemy.golem_l8_10_meadow.south": { "file": "enemies/enemy.golem_l8_10_meadow.south.png", @@ -1647,12 +1655,14 @@ "enemy.harpy_l8_9_forest.south": { "file": "enemies/enemy.harpy_l8_9_forest.south.png", "kind": "map_object", - "rotation": "south" + "rotation": "south", + "pixellabObjectId": "a46e140c-79c3-4608-8792-637c0b22d1e9" }, "enemy.harpy_l8_9_ruins.south": { "file": "enemies/enemy.harpy_l8_9_ruins.south.png", "kind": "map_object", - "rotation": "south" + "rotation": "south", + "pixellabObjectId": "610c6ade-8c83-488d-96c9-0001d4711ed4" }, "enemy.harpy_l10_11_ruins.south": { "file": "enemies/enemy.harpy_l10_11_ruins.south.png", @@ -1693,22 +1703,26 @@ "enemy.manticore_l14_16_meadow.south": { "file": "enemies/enemy.manticore_l14_16_meadow.south.png", "kind": "map_object", - "rotation": "south" + "rotation": "south", + "pixellabObjectId": "ecbf9e5f-c5e6-4a17-89f1-8e80516dab1e" }, "enemy.manticore_l14_16_forest.south": { "file": "enemies/enemy.manticore_l14_16_forest.south.png", "kind": "map_object", - "rotation": "south" + "rotation": "south", + "pixellabObjectId": "0e0b2734-94a9-45b5-8237-7ad90616c2bc" }, "enemy.manticore_l17_19_forest.south": { "file": "enemies/enemy.manticore_l17_19_forest.south.png", "kind": "map_object", - "rotation": "south" + "rotation": "south", + "pixellabObjectId": "0eace880-1405-4d6c-96e3-444678c3c70b" }, "enemy.manticore_l17_19_ruins.south": { "file": "enemies/enemy.manticore_l17_19_ruins.south.png", "kind": "map_object", - "rotation": "south" + "rotation": "south", + "pixellabObjectId": "7bb96ddc-5383-4006-8e9b-0216597799fd" }, "enemy.manticore_l20_22_ruins.south": { "file": "enemies/enemy.manticore_l20_22_ruins.south.png", diff --git a/frontend/src/game/renderer.ts b/frontend/src/game/renderer.ts index 540af1b..de26b1e 100644 --- a/frontend/src/game/renderer.ts +++ b/frontend/src/game/renderer.ts @@ -992,7 +992,6 @@ export class GameRenderer { if (!gfx) return; const iso = worldToScreen(wx, wy); - const bob = Math.sin(now * 0.004) * 1.0; const z = iso.y + 92; const hideRestCampSprites = (): void => { @@ -1009,7 +1008,6 @@ export class GameRenderer { const bagTex = this._spriteRegistry.getTexture(bagKey); if (tentTex && fireTex && bagTex) { gfx.clear(); - const b = bob * 0.35; const place = ( poolKey: string, textureKey: string, @@ -1027,7 +1025,7 @@ export class GameRenderer { ); entry.sprite.anchor.set(0.5, 1); entry.sprite.x = x; - entry.sprite.y = y + b; + entry.sprite.y = y; entry.sprite.scale.set(scale); entry.sprite.zIndex = z; entry.sprite.visible = true; @@ -1044,7 +1042,7 @@ export class GameRenderer { // --- Tent (screen-left of hero, reads “behind” in iso); ~2× size vs old fallback --- const tx = iso.x - 54; - const ty = iso.y - 6 + bob * 0.4; + const ty = iso.y - 6 // Ground shadow under tent gfx.ellipse(tx, ty + 28, 44, 14); @@ -1070,7 +1068,7 @@ export class GameRenderer { // --- Campfire (pushed right; center clear for hero) --- const cx = iso.x + 42; - const cy = iso.y + 8 + bob; + const cy = iso.y + 8; gfx.ellipse(cx, cy + 6, 12, 4); gfx.fill({ color: 0x000000, alpha: 0.22 });