Commit Graph

11 Commits

Author SHA1 Message Date
Ólafur Waage aa22b91e8b Adding header files to their own folder in the project. 2021-09-06 14:51:01 +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
Corentin Jabot 727a2c5e76 Create an include 2021-07-05 12:02:36 +02:00
Patricia Aas 493923036a Make it work on Linux again 2021-06-22 13:17:12 +02:00
Patricia Aas 32886717de Make it work on windows 2021-06-22 13:17:12 +02:00
Patricia Aas c6191b1f5d Reformat CMakeLists.txt 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 f83bf46171 Fix Debug build on ubuntu 2021-06-16 15:59:52 +02:00
Corentin Jabot 75fd208299 Basic Text rendering
Using SDL2_ttf and fmt
2021-06-16 15:18:47 +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