Skip to content

Commit e93ed9e

Browse files
committed
web: adjust tick rate and ant-nest conceal radius
1 parent d4e1c51 commit e93ed9e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/web/src/lib/stores/world.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const worldStore = writable<{ world: WorldDto; stats: StatsDto } | null>(
66
null,
77
);
88

9-
const SIMULATION_TICK_RATE = 100; // ms per tick
9+
const SIMULATION_TICK_RATE = 150; // ms per tick
1010
let animationFrameId: number | null = null;
1111

1212
export const startWorldUpdates = () => {

packages/web/src/lib/world/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ export const SPRITE_CONFIGS = {
33
scale: 0.7,
44
anchor: { x: 0.5, y: 0 },
55
frameCount: 4,
6-
concealedRadius: 60,
6+
concealedRadius: 25,
77
defaultTextureName: "ant-down-0",
88
},
99
FOOD: { scale: 1, anchor: { x: 0.5, y: 0 }, statsBubbleYOffset: -12 },
10-
NEST: { scale: 1, anchor: { x: 0.5, y: 0.5 } },
10+
NEST: { scale: 2, anchor: { x: 0.5, y: 0.5 } },
1111
} as const;
1212

1313
export const LAYER_INDEX = {

0 commit comments

Comments
 (0)