refactor: Reduce player size by 50% to improve pixel collision

This commit is contained in:
Kacper Kostka (aider)
2025-04-05 18:49:31 +02:00
parent d2ab5094ab
commit bb1e25e753
2 changed files with 6 additions and 6 deletions

View File

@@ -103,7 +103,7 @@ function spawnPlayer() {
// Create player at specified coordinates
// Position adjusted for proper sprite alignment with smaller sprite
player = createEntity(ENTITY_TYPES.PLAYER, 229, 45);
player = createEntity(ENTITY_TYPES.PLAYER, 229, 40); // Adjusted Y position for smaller player
// Focus camera on player
worldOffsetX = player.x - (canvas.width / PIXEL_SIZE / 2);