Commit Graph

16 Commits

Author SHA1 Message Date
Jon Thysell
cdf67289a9 Added saving of progress to the application's 'SAVE' resource 2021-12-12 15:45:28 -08:00
Jon Thysell
5a4928ba39 Doxygen comments part 2 - c files 2021-12-08 14:35:06 -08:00
Jon Thysell
50a753b35e Minor cleanup of resources
Made sure all resources are no longer marked as purgeable so they stay
in memory (not that we were running out), also cleaned up some other
code issues.
2021-12-01 10:08:07 -08:00
Jon Thysell
3542861603 Added level select scene and more
I've added a new level select scene after picking your set, and I've
updated the engine to store the result of each puzzle separately. The
level select is paged (can't fit all 50 on one screen), so needed to add
a new "previous button" graphic.

Added confirmation prompts, so I can prompt before quitting, and for a
new menu option to clear your scores if you want to reset your progress.

Progress is still not persisted when you exit, as I haven't figured out
how to do that yet.

I've also rearranged the title screen a bit.
2021-11-30 18:38:36 -08:00
Jon Thysell
2bf70cf136 Fixed bug where opening the about menu breaks input/rendering 2021-11-23 12:23:23 -08:00
Jon Thysell
15378f1077 Added sounds! 2021-11-09 17:01:34 -08:00
Jon Thysell
eab519a40d Importing image assets from ArduLO
I've imported some of the "character" images from ArduLO, converted to
GIFs because they're easier to work with. They've been imported into a
new Bitmaps structure so they only need to be loaded once at app start.

I've also cleaned up some of the drawing code, and created a series of
helpers for dividing Rects into a 3x3 grid, to make it easier to define
the layout. I've also stubbed out "theme-support". :)
2021-11-04 19:54:28 -07:00
Jon Thysell
66794a2241 Refactored scenes into separate files, added game end, added title logo 2021-10-31 15:13:51 -07:00
Jon Thysell
f49200a4a2 Fixed rendering flicker and more
* No more flicker when updating lights
* Lights now toggled on mouseUp instead of mouseDown
* Added playfield and hud areas
2021-10-20 16:13:31 -07:00
Jon Thysell
c90e42305f Added initial playfield rendering 2021-10-20 09:34:31 -07:00
Jon Thysell
cf5daf9dc7 Cleaned up about dialog, fixed window centering 2021-10-16 15:38:43 -07:00
Jon Thysell
2ce4236ea7 Proper event loop, menus, and more
* Added a proper event loop
* Added minimal menu bars
* Added about menu
* GameWindow initializes a GameEngine (even if you can't play it yet)
* Updated variable naming conventions
2021-10-15 17:29:07 -07:00
Jon Thysell
6184d31e6a Factored out GameWindow, added error alert dialogs, simplified stdbool.h 2021-10-15 09:43:09 -07:00
Jon Thysell
b51cf36f80 Small refactoring, handle missing WIND resource, added icons and version resources 2021-10-13 17:44:08 -07:00
Jon Thysell
855abe8717 Fix line endings 2021-10-11 11:11:48 -07:00
Jon Thysell
1f51e4e4d2 First "Hello MacLO" build
* Added base "Hello MacLO" app
* Added first attempt at porting game engine from [ArduLO](https://github.com/jonthysell/ArduLO)
* Added README.md and LICENSE.md
2021-10-11 11:04:12 -07:00