Commit Graph

19 Commits

Author SHA1 Message Date
Adrian Conlon
19f8e20021 Simplification when using C++20 2021-12-08 19:52:53 +00:00
Adrian Conlon
e7d3c2ecb7 Use C++17 nodiscard attribute a little in the Game library 2021-12-08 19:46:19 +00:00
Adrian Conlon
72705e8dd0 Updated projects for VS2022 2021-12-08 19:42:34 +00:00
Adrian Conlon
a37aaeba31 Unify the compilation options to what seems to be a sensible point.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2021-10-24 14:12:57 +01:00
Adrian Conlon
6bf28f1480 Correct some virtual and constexpr expressions.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2021-08-23 09:44:48 +01:00
Adrian Conlon
22506ea56c Extensive change warning: lots of "noexcept" and "constexpr" changes. Not sure if I'll keep all of them, but interesting...
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2021-07-18 14:28:40 +01:00
Adrian Conlon
2f76e901f9 More tidying of include files for VS2019 compatibility (plus more correct!)
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2021-05-29 12:18:13 +01:00
Adrian Conlon
2fa9ffd1e3 Tidy up some C++ a little
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2021-04-07 21:36:09 +01:00
Adrian Conlon
d956702e05 Whoops: Missed gaming library makefile for linux
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-06-07 11:59:37 +01:00
Adrian Conlon
23219734da Resurrect linux build (checked on Ubuntu 18.04)
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-06-07 11:49:57 +01:00
Adrian Conlon
1663c7caf3 Refactor the "Game" class a little to allow future refactoring.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-05-03 20:55:58 +01:00
Adrian Conlon
dc91df1177 Some mild reformatting of the Gaming class.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-11-09 23:01:58 +00:00
Adrian Conlon
be79b5661f Update to latest SDL2 (2.10.0)
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-10-12 23:15:47 +01:00
Adrian Conlon
89fae1cb6f Tidy the Gaming library a little:
*) Add an SDLWrapper class to control the lifetime of SDL_Init/SDL_Quit
*) Pass FPS as a float, rather than int
*) Allow the key and button handlers to show whether an event was handled or not
*) Add a full screen render option (F12)
*) Use smart pointers in the GameController class

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-10-01 23:54:48 +01:00
Adrian Conlon
1577455a67 Add support for joystick controller pads (especially DPad)
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-09-29 19:12:09 +01:00
Adrian Conlon
d8e4853971 Reorder the vertical blank raster lines a little to make it easier to use...
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-09-29 11:36:17 +01:00
Adrian Conlon
74ab3d0f01 Split CPU raster display time from vertical blank time.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-09-29 01:46:56 +01:00
Adrian Conlon
7a6e0eafcd Modifications to allow gaming class to be used with Space Invaders emulator
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-09-29 00:27:45 +01:00
Adrian Conlon
4afe6b6378 For convenience, add a very lightweight SDL wrapper to the EightBit library.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-09-28 14:29:44 +01:00