modify collisions

This commit is contained in:
2025-11-10 12:02:32 -05:00
parent 9d7c162dfa
commit 83f033f62b
4 changed files with 14 additions and 12 deletions
+2 -1
View File
@@ -70,7 +70,8 @@ void Game::run() {
pacman.setAnimationTiles(resources.getTexture("all_textures"), {2016, 0}, "death", {60, 60}, 11, 4);
pacman.setActiveSprite("static", 0);
pacman.setOrigin({30, 30});
pacman.setPosition({32 * 14.5 - 16, 32 * 24 - 16});
// Tile center = tile * tileSize + tileSize/2
pacman.setPosition({14.5 * 32.0f - 16.0f, 24 * 32.0f - 16.0f});
blinky.setAnimationTiles(resources.getTexture("all_textures"), {1824, 256}, "right_walking", {60, 60}, 2, 4);
blinky.setAnimationTiles(resources.getTexture("all_textures"), {1952, 256}, "left_walking", {60, 60}, 2, 4);