Commit Graph

6 Commits

Author SHA1 Message Date
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
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
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