Commit 2ada8310 authored by Ушкова Диана Петровна's avatar Ушкова Диана Петровна
Browse files

update

No related merge requests found
Showing with 3 additions and 5 deletions
+3 -5
......@@ -2,7 +2,7 @@
#include "../../../../workdir/config.h"
Pacman::Pacman() {
m_shape = sf::CircleShape(config::GAME_PACMAN_SIZE);
m_shape = sf::CircleShape(config::GAME_PACMAN_SIZE/2);
m_shape.setFillColor(config::GAME_COLOR_PACMAN);
m_shape.setOrigin({config::GAME_PACMAN_SIZE/2, config::GAME_PACMAN_SIZE/2});
}
......
......@@ -71,10 +71,8 @@ void Wall::draw_into(sf::RenderWindow& m_window) {
void Pass::enter(IEntity* entity) {
if (entity->get_location() == &m_room2) {
if (entity->get_location() == &m_room2)
entity->set_location(&m_room1);
}
else {
else
entity->set_location(&m_room2);
}
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment