pixel-perfect rendering, all sprites have same 1:1 scale

This commit is contained in:
azykov@mail.ru
2026-09-09 19:10:50 +03:00
parent 4e30c585d1
commit 43f6004fb0
16 changed files with 340 additions and 137 deletions
+5 -5
View File
@@ -10,20 +10,20 @@ export const RABBIT_ACTION_DURATION = 0.5;
export const RABBIT_PAUSE_DURATION = 0.5;
/** Max distance covered by a single jump. */
export const RABBIT_JUMP_DISTANCE = 80;
export const RABBIT_JUMP_DISTANCE = 27;
/** Peak height (px) of a jump's parabolic arc — same idea as a resource drop's arc when it flies
* off a chopped tree. */
export const RABBIT_JUMP_ARC_HEIGHT = 30;
export const RABBIT_JUMP_ARC_HEIGHT = 10;
/** By day, a rabbit won't choose a jump target closer than this to the character. */
export const RABBIT_MIN_DISTANCE_FROM_CHARACTER = 130;
export const RABBIT_MIN_DISTANCE_FROM_CHARACTER = 43;
/** How close the character must be, by night, for a rabbit to strike instead of jumping toward them. */
export const RABBIT_STRIKE_RANGE = 28;
export const RABBIT_STRIKE_RANGE = 9;
/** How close the character must get to hit a rabbit. */
export const RABBIT_HIT_RADIUS = 40;
export const RABBIT_HIT_RADIUS = 13;
/** A rabbit's max HP (fixed — unlike the character's, there's no upgrade for it). */
export const RABBIT_MAX_HP = 3;