Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Ушкова Диана Петровна
Pacman
Commits
2ada8310
Commit
2ada8310
authored
1 month ago
by
Ушкова Диана Петровна
Browse files
Options
Download
Patches
Plain Diff
update
parent
caec7c6d
main
ui_disagn
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/application/Drawable/Entity/Pacman.cpp
+1
-1
source/application/Drawable/Entity/Pacman.cpp
source/application/Drawable/Maze/Maze.cpp
+2
-4
source/application/Drawable/Maze/Maze.cpp
with
3 additions
and
5 deletions
+3
-5
source/application/Drawable/Entity/Pacman.cpp
+
1
−
1
View file @
2ada8310
...
...
@@ -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
});
}
...
...
This diff is collapsed.
Click to expand it.
source/application/Drawable/Maze/Maze.cpp
+
2
−
4
View file @
2ada8310
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets