mirror of
https://github.com/dylanbenzi/pacmen-sfml.git
synced 2026-11-27 08:26:59 +00:00
modify collisions
This commit is contained in:
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user