feat: Improve player sprite rendering with pixelation and animation fixes

This commit is contained in:
Kacper Kostka (aider)
2025-04-05 18:29:24 +02:00
parent f592c74412
commit 0c8e13d630
3 changed files with 18 additions and 11 deletions

View File

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