Ó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
aa45121bec
Minor formatting and warning fixes.
2021-09-06 16:40:42 +02:00
Corentin Jabot
af1c650727
Be more explicit about captures
2021-08-12 10:19:54 +02:00
Patricia Aas
79b78f7dc0
Remove pacman::
2021-07-28 15:41:32 +02:00
Patricia Aas
522362152d
Refactor
2021-07-13 14:26:57 +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
Patricia Aas
3c638c057e
No need to pass Board around
2021-07-07 11:39:09 +02:00
Patricia Aas
e9fb5dac77
Fix some warnings and clang tidy
2021-07-07 11:24:12 +02:00
Patricia Aas
742f4ce56a
Round doesn't make sense
2021-07-06 17:11:49 +02:00
Patricia Aas
9bea9fdad9
Add back comment
2021-07-06 17:11:18 +02:00
Patricia Aas
138f2df152
PacMan size is an integer
2021-07-06 17:10:17 +02:00
Patricia Aas
a7a1565c99
Prettify
2021-07-06 16:33:33 +02:00
Patricia Aas
30f69464dd
Move over to size_t
2021-07-06 12:35:23 +02:00
Corentin Jabot
60095363f4
Put the code in a namespace
2021-07-05 14:10:01 +02:00
Corentin Jabot
d166f552f4
Simplify board code
2021-07-05 13:54:54 +02:00
Corentin Jabot
e4991ab1dd
Rename PositionInt
2021-07-05 11:47:03 +02:00
Corentin Jabot
ba515eaca5
Replace floats by doubles
2021-07-05 11:40:10 +02:00
Corentin Jabot
5b0e561afc
Pacman and ghosts can eat each others
2021-07-01 10:19:46 +02:00
Corentin Jabot
93186dc8b9
Add ghosts
...
No movement for now!
2021-06-24 18:33:08 +02:00
Corentin Jabot
79506d218e
Make a ghost pen
2021-06-24 18:33:08 +02:00
Corentin Jabot
42ee04203f
Make pacman mouth wide open while he doesn't move
2021-06-24 18:33:08 +02:00
Corentin Jabot
ecf2ab8b6c
Try to make animation less dependant on framerate
2021-06-24 18:33:08 +02:00
Corentin Jabot
a69e66d114
Pacman should not be animated when hitting a wall
2021-06-24 18:33:08 +02:00
Patricia Aas
5f0c03c1fa
Clang Tidy fixes
2021-06-22 13:17:12 +02:00
Corentin Jabot
c7ef086d3d
Migrate from SDL to SFML
...
This simplifies the rendering code and remove all(!) pointers.
There is a number of unresolved issues
* Windows build ?
* position delta computation: migrating to SFML seems to have modified
the frame rate.
2021-06-22 13:17:12 +02:00
Corentin Jabot
f911f6e2a8
Eat pellets
2021-06-16 13:59:16 +02:00
Corentin Jabot
2398bf9c36
Fix animation
2021-06-16 13:18:05 +02:00
Patricia Aas
68f63f3f66
Canvas rewrite ( #6 )
...
* Beginning rewrite
* Move all constants to canvas, wire sprite handling code
* Make Sprite a struct and reformat
* Fix warning
Co-authored-by: Corentin Jabot <corentinjabot@gmail.com>
2021-06-16 12:52:04 +02:00
Corentin Jabot
f6efcbbf79
Support teleporting at the edges of the map
2021-06-16 01:39:37 +02:00
Corentin Jabot
bbf3731cf4
Change window geometry for scoring.
...
* Add margins all around the board for better aestetics.
* Add room for scoring
* Because the texture atlas is a 32x32 grid, we can manipulate
textures as positions on that grid and only create a rectangle
for that texture in the rendering code.
* Avoid hardcoded values in the rendering code.
2021-06-15 23:55:55 +02:00
Patricia Aas
9644229061
Give function a shorter name to fit on a slide :)
2021-06-10 14:26:03 +02:00
Corentin Jabot
335a698226
Replace float_t by float
2021-05-10 15:14:38 +02:00
Corentin Jabot
164db664ef
Use VCPKG and reorganization
...
* Remove non-pacman exercises.
* Use vcpkg instead of conan ( make vcpkg a submodule)
* Merge the readmem these will need to be improve later
2021-05-10 14:58:00 +02:00