refactor: Reduce player size by 50% to improve pixel collision
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user