mirror of
https://github.com/cliffe/BreakEscape.git
synced 2026-02-21 11:18:08 +00:00
Remove linear damping from NPC sprite creation for improved movement behavior
This commit is contained in:
@@ -56,7 +56,6 @@ export function createNPCSprite(scene, npc, roomData) {
|
||||
// High drag causes velocity to quickly decay (good for stationary NPCs)
|
||||
// High linear damping provides additional deceleration (complements drag)
|
||||
sprite.body.setDrag(0.95); // Drag: 0.95 = lose 95% of velocity per second
|
||||
sprite.body.setLinearDamping(0.8); // Linear damping: additional 80% deceleration
|
||||
|
||||
// Set up animations
|
||||
setupNPCAnimations(scene, sprite, spriteSheet, config, npc.id);
|
||||
|
||||
Reference in New Issue
Block a user