remove sway for camp

master
Denis Ranneft 1 month ago
parent 517334d18d
commit 7c0781bb29

@ -1,5 +1,5 @@
{ {
"version": 34, "version": 36,
"assetsRoot": "frontend/assets", "assetsRoot": "frontend/assets",
"note": "file paths relative to frontend/assets. Rest camp: prop.camp_tent/fire/bag.v0 (wild rest). Other props + heroes + NPC.", "note": "file paths relative to frontend/assets. Rest camp: prop.camp_tent/fire/bag.v0 (wild rest). Other props + heroes + NPC.",
"textures": { "textures": {
@ -1205,42 +1205,50 @@
"enemy.titan_l28_29_forest.south": { "enemy.titan_l28_29_forest.south": {
"file": "enemies/enemy.titan_l28_29_forest.south.png", "file": "enemies/enemy.titan_l28_29_forest.south.png",
"kind": "map_object", "kind": "map_object",
"rotation": "south" "rotation": "south",
"pixellabObjectId": "d67588a7-8021-4e1d-925b-4e55d8cd65e9"
}, },
"enemy.titan_l28_29_ruins.south": { "enemy.titan_l28_29_ruins.south": {
"file": "enemies/enemy.titan_l28_29_ruins.south.png", "file": "enemies/enemy.titan_l28_29_ruins.south.png",
"kind": "map_object", "kind": "map_object",
"rotation": "south" "rotation": "south",
"pixellabObjectId": "3b6515cf-e4e1-493a-a27a-3f96f71bfb4a"
}, },
"enemy.titan_l30_31_ruins.south": { "enemy.titan_l30_31_ruins.south": {
"file": "enemies/enemy.titan_l30_31_ruins.south.png", "file": "enemies/enemy.titan_l30_31_ruins.south.png",
"kind": "map_object", "kind": "map_object",
"rotation": "south" "rotation": "south",
"pixellabObjectId": "e5c68620-964f-44ac-90d3-c86ba19f9913"
}, },
"enemy.titan_l30_31_canyon.south": { "enemy.titan_l30_31_canyon.south": {
"file": "enemies/enemy.titan_l30_31_canyon.south.png", "file": "enemies/enemy.titan_l30_31_canyon.south.png",
"kind": "map_object", "kind": "map_object",
"rotation": "south" "rotation": "south",
"pixellabObjectId": "af134ca2-ed12-475d-8912-ed3f61af0287"
}, },
"enemy.titan_l32_33_canyon.south": { "enemy.titan_l32_33_canyon.south": {
"file": "enemies/enemy.titan_l32_33_canyon.south.png", "file": "enemies/enemy.titan_l32_33_canyon.south.png",
"kind": "map_object", "kind": "map_object",
"rotation": "south" "rotation": "south",
"pixellabObjectId": "63379235-01cf-44ea-9b6f-0af9194c97e5"
}, },
"enemy.titan_l32_33_swamp.south": { "enemy.titan_l32_33_swamp.south": {
"file": "enemies/enemy.titan_l32_33_swamp.south.png", "file": "enemies/enemy.titan_l32_33_swamp.south.png",
"kind": "map_object", "kind": "map_object",
"rotation": "south" "rotation": "south",
"pixellabObjectId": "c0375309-9b2d-4080-8e58-3a7f2a578cad"
}, },
"enemy.titan_l34_35_volcanic.south": { "enemy.titan_l34_35_volcanic.south": {
"file": "enemies/enemy.titan_l34_35_volcanic.south.png", "file": "enemies/enemy.titan_l34_35_volcanic.south.png",
"kind": "map_object", "kind": "map_object",
"rotation": "south" "rotation": "south",
"pixellabObjectId": "68242f44-5fd5-4251-b04e-d48c16a22a40"
}, },
"enemy.titan_l34_35_astral.south": { "enemy.titan_l34_35_astral.south": {
"file": "enemies/enemy.titan_l34_35_astral.south.png", "file": "enemies/enemy.titan_l34_35_astral.south.png",
"kind": "map_object", "kind": "map_object",
"rotation": "south" "rotation": "south",
"pixellabObjectId": "3d833165-e7b1-455e-b95e-b9472b1970be"
}, },
"enemy.golem_l8_10_meadow.south": { "enemy.golem_l8_10_meadow.south": {
"file": "enemies/enemy.golem_l8_10_meadow.south.png", "file": "enemies/enemy.golem_l8_10_meadow.south.png",
@ -1647,12 +1655,14 @@
"enemy.harpy_l8_9_forest.south": { "enemy.harpy_l8_9_forest.south": {
"file": "enemies/enemy.harpy_l8_9_forest.south.png", "file": "enemies/enemy.harpy_l8_9_forest.south.png",
"kind": "map_object", "kind": "map_object",
"rotation": "south" "rotation": "south",
"pixellabObjectId": "a46e140c-79c3-4608-8792-637c0b22d1e9"
}, },
"enemy.harpy_l8_9_ruins.south": { "enemy.harpy_l8_9_ruins.south": {
"file": "enemies/enemy.harpy_l8_9_ruins.south.png", "file": "enemies/enemy.harpy_l8_9_ruins.south.png",
"kind": "map_object", "kind": "map_object",
"rotation": "south" "rotation": "south",
"pixellabObjectId": "610c6ade-8c83-488d-96c9-0001d4711ed4"
}, },
"enemy.harpy_l10_11_ruins.south": { "enemy.harpy_l10_11_ruins.south": {
"file": "enemies/enemy.harpy_l10_11_ruins.south.png", "file": "enemies/enemy.harpy_l10_11_ruins.south.png",
@ -1693,22 +1703,26 @@
"enemy.manticore_l14_16_meadow.south": { "enemy.manticore_l14_16_meadow.south": {
"file": "enemies/enemy.manticore_l14_16_meadow.south.png", "file": "enemies/enemy.manticore_l14_16_meadow.south.png",
"kind": "map_object", "kind": "map_object",
"rotation": "south" "rotation": "south",
"pixellabObjectId": "ecbf9e5f-c5e6-4a17-89f1-8e80516dab1e"
}, },
"enemy.manticore_l14_16_forest.south": { "enemy.manticore_l14_16_forest.south": {
"file": "enemies/enemy.manticore_l14_16_forest.south.png", "file": "enemies/enemy.manticore_l14_16_forest.south.png",
"kind": "map_object", "kind": "map_object",
"rotation": "south" "rotation": "south",
"pixellabObjectId": "0e0b2734-94a9-45b5-8237-7ad90616c2bc"
}, },
"enemy.manticore_l17_19_forest.south": { "enemy.manticore_l17_19_forest.south": {
"file": "enemies/enemy.manticore_l17_19_forest.south.png", "file": "enemies/enemy.manticore_l17_19_forest.south.png",
"kind": "map_object", "kind": "map_object",
"rotation": "south" "rotation": "south",
"pixellabObjectId": "0eace880-1405-4d6c-96e3-444678c3c70b"
}, },
"enemy.manticore_l17_19_ruins.south": { "enemy.manticore_l17_19_ruins.south": {
"file": "enemies/enemy.manticore_l17_19_ruins.south.png", "file": "enemies/enemy.manticore_l17_19_ruins.south.png",
"kind": "map_object", "kind": "map_object",
"rotation": "south" "rotation": "south",
"pixellabObjectId": "7bb96ddc-5383-4006-8e9b-0216597799fd"
}, },
"enemy.manticore_l20_22_ruins.south": { "enemy.manticore_l20_22_ruins.south": {
"file": "enemies/enemy.manticore_l20_22_ruins.south.png", "file": "enemies/enemy.manticore_l20_22_ruins.south.png",

@ -992,7 +992,6 @@ export class GameRenderer {
if (!gfx) return; if (!gfx) return;
const iso = worldToScreen(wx, wy); const iso = worldToScreen(wx, wy);
const bob = Math.sin(now * 0.004) * 1.0;
const z = iso.y + 92; const z = iso.y + 92;
const hideRestCampSprites = (): void => { const hideRestCampSprites = (): void => {
@ -1009,7 +1008,6 @@ export class GameRenderer {
const bagTex = this._spriteRegistry.getTexture(bagKey); const bagTex = this._spriteRegistry.getTexture(bagKey);
if (tentTex && fireTex && bagTex) { if (tentTex && fireTex && bagTex) {
gfx.clear(); gfx.clear();
const b = bob * 0.35;
const place = ( const place = (
poolKey: string, poolKey: string,
textureKey: string, textureKey: string,
@ -1027,7 +1025,7 @@ export class GameRenderer {
); );
entry.sprite.anchor.set(0.5, 1); entry.sprite.anchor.set(0.5, 1);
entry.sprite.x = x; entry.sprite.x = x;
entry.sprite.y = y + b; entry.sprite.y = y;
entry.sprite.scale.set(scale); entry.sprite.scale.set(scale);
entry.sprite.zIndex = z; entry.sprite.zIndex = z;
entry.sprite.visible = true; 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 --- // --- Tent (screen-left of hero, reads “behind” in iso); ~2× size vs old fallback ---
const tx = iso.x - 54; const tx = iso.x - 54;
const ty = iso.y - 6 + bob * 0.4; const ty = iso.y - 6
// Ground shadow under tent // Ground shadow under tent
gfx.ellipse(tx, ty + 28, 44, 14); gfx.ellipse(tx, ty + 28, 44, 14);
@ -1070,7 +1068,7 @@ export class GameRenderer {
// --- Campfire (pushed right; center clear for hero) --- // --- Campfire (pushed right; center clear for hero) ---
const cx = iso.x + 42; const cx = iso.x + 42;
const cy = iso.y + 8 + bob; const cy = iso.y + 8;
gfx.ellipse(cx, cy + 6, 12, 4); gfx.ellipse(cx, cy + 6, 12, 4);
gfx.fill({ color: 0x000000, alpha: 0.22 }); gfx.fill({ color: 0x000000, alpha: 0.22 });

Loading…
Cancel
Save