Corentin Jabot
25394c4cdd
Right the wrongs
2021-09-10 14:02:09 +02:00
Patricia Aas
706c6245a5
Capture local explicitly
2021-09-10 11:41:20 +02:00
Patricia Aas
0f7ad08ae9
Add missing include
2021-09-10 11:41:00 +02:00
Corentin Jabot
06cb7a17f6
Fix the build again
2021-09-10 11:35:26 +02:00
Corentin Jabot
8db4b0af79
Fix the build (this is why you make PRs kids)
2021-09-10 11:24:24 +02:00
Corentin Jabot
453dd17d7c
Use size_t again
2021-09-10 11:04:27 +02:00
Ólafur Waage
2f62f7ae1d
Reverting pellet C++20 changes since we don't target 20 fully.
2021-09-09 10:59:59 +02:00
Ólafur Waage
613831f1c0
Fixes for ghost movement where they would occationally exit the stage when cornered. Closes #25
2021-09-09 10:56:29 +02:00
Ólafur Waage
60b3cdeb40
Formatting and const fixes. Also check for extra canGo calls.
2021-09-08 14:49:43 +02:00
Ólafur Waage
b79b2a29e8
Using std::erase for pellets possible in C++20
2021-09-08 10:21:37 +02:00
Ólafur Waage
55fbb53591
Refactoring Game and GameState. Moving game state update logic into that class. Game is now only event loop.
2021-09-07 16:00:19 +02:00
Ólafur Waage
aa45121bec
Minor formatting and warning fixes.
2021-09-06 16:40:42 +02:00
Ólafur Waage
d0bd69aee1
Removing unnecessary forward decl.
2021-09-06 16:27:29 +02:00
Ólafur Waage
00bfd15074
Adding epsilon test for Position. Also adding tests for GridPosition and Position.
2021-09-06 16:24:30 +02:00
Ólafur Waage
fe32b18d0c
Isolating SFML to the Canvas class.
2021-09-06 15:38:40 +02:00
Ólafur Waage
aa22b91e8b
Adding header files to their own folder in the project.
2021-09-06 14:51:01 +02:00
Patricia Aas
d196491ea4
Rename variable and remove unneeded curlies
2021-08-25 11:26:13 +02:00
Patricia Aas
4b7015b96b
Remove unneeded init
2021-08-25 11:23:54 +02:00
Corentin Jabot
af1c650727
Be more explicit about captures
2021-08-12 10:19:54 +02:00
Corentin Jabot
b3798ef2df
Remove a nodiscard
2021-08-12 10:18:51 +02:00
Patricia Aas
eaf61585ea
Fix Clang-Tidy warnings
2021-08-02 16:43:18 +02:00
Corentin Jabot
76c931656f
Remove nodiscard
2021-08-02 15:31:32 +02:00
Patricia Aas
d3cc1d90c7
Fix warnings
2021-08-02 15:28:07 +02:00
Corentin Jabot
2cc15c6dcb
add toolchain file
2021-08-02 14:46:26 +02:00
Patricia Aas
c10eb99336
Early return in Clyde
2021-08-02 14:24:11 +02:00
Patricia Aas
ab9664d07f
Name changes and typos
2021-08-02 14:09:03 +02:00
Corentin Jabot
17ac48f713
Implement ghost movements
2021-07-29 11:16:08 +02:00
Patricia Aas
43ccaae3ef
Rename variable
2021-07-28 19:06:35 +02:00
Patricia Aas
99cf57956c
Init pos
2021-07-28 17:01:22 +02:00
Patricia Aas
4d53ccce18
Introduce scatterTarget function and inline things that should be in the ghost
2021-07-28 16:39:27 +02:00
Corentin Jabot
f31d238bd4
Rename speedy, remove starting position
2021-07-28 16:20:19 +02:00
Patricia Aas
79b78f7dc0
Remove pacman::
2021-07-28 15:41:32 +02:00
Patricia Aas
71cb40ad18
Remove unused parameter
2021-07-28 15:30:53 +02:00
Patricia Aas
5b2b0d8e73
Make files for ghosts
2021-07-28 15:28:36 +02:00
Corentin Jabot
fe04e7d03a
Cleanup PacManAnimation a bit
2021-07-19 12:06:27 +02:00
Corentin Jabot
d6a046ff47
Use the correct ghost names
2021-07-16 09:35:32 +02:00
Corentin Jabot
0428366e86
Call reserve and add uncommited code
2021-07-16 09:19:10 +02:00
Corentin Jabot
691aac978e
Get rid of tuple
2021-07-15 09:14:25 +02:00
Patricia Aas
522362152d
Refactor
2021-07-13 14:26:57 +02:00
Corentin Jabot
43cfecc077
Get rid of unused comparison operator
2021-07-09 10:24:24 +02:00
Patricia Aas
ee3c7c61db
Simplify
2021-07-08 18:12:03 +02:00
Patricia Aas
890d061a92
Move teleport to Board
2021-07-08 18:00:39 +02:00
Corentin Jabot
370a57f454
Get rid of board class
2021-07-08 17:42:24 +02:00
Patricia Aas
e5e46a0e65
Create GameState
2021-07-08 16:57:18 +02:00
Corentin Jabot
3966987e2a
Put the scaling function in a lib
2021-07-08 10:18:36 +02:00
Corentin Jabot
cbd19df739
Implement scaling.
...
We render pack man at twice the size that we want on screen,
which is the native resolution of the asset file.
The maze is upscaled.
We then project everything onto a view which is applies
the scale factor.
This patches also dectect the appropriate scale on OSX.
This required a bit of objective C (scaling.mm),
but students should not look at this file and there
is a comment in that direction.
Scalling.cpp provides the default implementation
for other platforms.
2021-07-07 21:32:22 +02:00
Patricia Aas
3c638c057e
No need to pass Board around
2021-07-07 11:39:09 +02:00
Patricia Aas
705ea717e1
Introduce a scale function and clean up
2021-07-07 11:25:13 +02:00
Patricia Aas
ce7dd70332
Very rough stab at scaling
2021-07-07 11:25:13 +02:00
Patricia Aas
e9fb5dac77
Fix some warnings and clang tidy
2021-07-07 11:24:12 +02:00