mirror of
https://github.com/dylanbenzi/pacmen-sfml.git
synced 2026-11-27 08:26:59 +00:00
add inital pacman position
This commit is contained in:
@@ -69,6 +69,8 @@ void Game::run() {
|
||||
pacman.setAnimationTiles(resources.getTexture("all_textures"), {1952, 0}, "static", {60, 60}, 1, 0);
|
||||
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});
|
||||
|
||||
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