feat: Update player sprite to 32x32 with improved animation and collision handling

This commit is contained in:
Kacper Kostka (aider)
2025-04-05 18:22:39 +02:00
parent c853738bbf
commit 84e08b397d
2 changed files with 46 additions and 15 deletions

View File

@@ -102,7 +102,8 @@ function spawnPlayer() {
PIXEL_SIZE = 6;
// Create player at specified coordinates
player = createEntity(ENTITY_TYPES.PLAYER, 229, 61);
// Adjust Y position to account for larger sprite size
player = createEntity(ENTITY_TYPES.PLAYER, 229, 55);
// Focus camera on player
worldOffsetX = player.x - (canvas.width / PIXEL_SIZE / 2);