Commit graph

106 commits

Author SHA1 Message Date
Zed A. Shaw
e78340a0cd Remove most of the image/sound managing stuff. 2025-04-22 01:22:33 -04:00
Zed A. Shaw
1be770d62d GUECS: Minimal components from zedcaster that will let me make a GUI for a game. 2025-04-21 23:45:04 -04:00
Zed A. Shaw
10ecf50bc0 Use pointers for the stuff so it can lazy load. 2025-04-21 23:44:12 -04:00
Zed A. Shaw
f5f8cdba37 Use main.cpp and disable healing for now. 2025-04-17 22:41:45 -04:00
Zed A. Shaw
c47e688b0b Now working on the new SFML with better audio. 2025-04-17 22:29:31 -04:00
Zed A. Shaw
2d81f900be Updated to use the latest libgit2 1.9.0 and GCC14. 2025-04-16 23:44:22 -04:00
Zed A. Shaw
62785d463c This is how you can lock meson build dependencies. Not sure why I didn't think of this before but you just put the .wrap files somewhere and instead of meson wrap install you copy them into subprojects. 2024-10-16 19:48:23 -04:00
Zed A. Shaw
678f5cc917 Quick fix for the clock to not start right away. 2024-09-27 16:34:58 -04:00
Zed A. Shaw
fff4e0fbee Now have a timer going with some fancy buttons. Next step a pomodoro time that counts down and if you don't finish your task in that time you take big damage. 2024-09-24 18:01:51 -04:00
Zed A. Shaw
47c9cb719e I now have a start/stop button for the pomodoro timer. 2024-09-24 17:26:39 -04:00
Zed A. Shaw
e1c667d816 The images for my reactions to your bad code are now up. Went with a more 'pixel video' look than a pixel art hand drawn thing. 2024-09-20 18:47:14 -04:00
Zed A. Shaw
581e5b4a60 Simplify the color system by using a simple Values system for the dark to light. 2024-09-19 11:44:34 -04:00
Zed A. Shaw
3cb4fcfeb5 Stupid self-portrait for the game's 'bad guy'. 2024-09-18 10:46:17 -04:00
Zed A. Shaw
37d28094ec Got some kind of jank button and mouse events coming in, now just need to connect them to the GUI to detect button presses and other interaction. 2024-09-17 11:55:01 -04:00
Zed A. Shaw
9741df30ab Fix a typo. 2024-09-16 18:23:52 -04:00
Zed A. Shaw
56663b9052 Better UI layout and actually tracking deaths. 2024-09-16 18:19:54 -04:00
Zed A. Shaw
662e4bf918 Committed a broken file. 2024-09-16 17:25:04 -04:00
Zed A. Shaw
95cd84b09d Get the build fail to actually play and keep the building sound looping until the build is done. 2024-09-16 17:24:02 -04:00
Zed A. Shaw
2035a6dd00 DBC now works and has a test. 2024-09-16 09:20:35 -04:00
Zed A. Shaw
f632f2d5af FSM is now even cleaner, as long as you don't look at that CPP macro. 2024-09-16 08:05:43 -04:00
Zed A. Shaw
c9425aebf9 Refined the FSM to allow easily passing in data to the even handler and state functions. 2024-09-16 07:50:04 -04:00
Zed A. Shaw
40ba7f0b66 Logging for the FSM works better now. 2024-09-16 07:05:40 -04:00
Zed A. Shaw
0aeb5b4ceb Make the FSM_STATE work better with optional loggins set by a define and standardize on using enum class by default. 2024-09-16 06:53:49 -04:00
Zed A. Shaw
8df6898d0b Update status. 2024-09-15 04:21:01 -04:00
Zed A. Shaw
0a9fa59365 The game engine now has two bonuses for long build streaks. +10% max hp or 1 free death. I'll be adding more but that's enough to work on the real UI. 2024-09-15 04:19:52 -04:00
Zed A. Shaw
07553400f5 Test suite now accurately runs the GameEngine FSM for multiple rounds. 2024-09-15 03:23:09 -04:00
Zed A. Shaw
07a212d9d7 Share my status notes. 2024-09-15 02:24:58 -04:00
Zed A. Shaw
ea89e083dd The std::async calls need a lock on them. 2024-09-15 02:24:41 -04:00
Zed A. Shaw
4b2ed2951e Game engine now handles damage types but Ineed to refine the state machines so some of them can take additional data. 2024-09-12 01:25:23 -04:00
Zed A. Shaw
9e6c05eccd GameEngine is now a state machine so I can push its design further and keep it solid. 2024-09-12 00:34:41 -04:00
Zed A. Shaw
1c89afaee2 Setting up for a redesign of the engine to have the real game mechanics. Using the fsm.hpp code. 2024-09-11 00:18:32 -04:00
Zed A. Shaw
7c9bea81b2 The UI is _finally_ responsive while the builder runs. 2024-09-10 23:41:50 -04:00
Zed A. Shaw
5ae24d9b0a Moved the main event loop out of GUI so it's not so tightly coupled to everything else. 2024-09-10 22:58:45 -04:00
Zed A. Shaw
c0ad0c8d23 Rework the GUI so it uses SFMLBackend by moving the SoundQuip into SFMLBackend. 2024-09-10 22:40:02 -04:00
Zed A. Shaw
1badbd5942 Improved the makefile dramatically and updated the README to use it. 2024-09-10 21:48:14 -04:00
Zed A. Shaw
152d4cf037 A bit more source refactoring. 2024-09-10 21:29:01 -04:00
Zed A. Shaw
cc3bb171e1 Restructing the source layout to make it nicer. 2024-09-10 21:17:15 -04:00
Zed A. Shaw
fff182b457 Refactored out the main_loop so that it's not tightly coupled inside builder, and in the process found I was accidentally copying GUI and GameEngine because Builder wasn't using a &ref for them. Now they don't have a copy constructor to catch that. 2024-09-10 04:38:21 -04:00
Zed A. Shaw
a7c5de6ac3 Builder is now using the FSM I wrote. Still not as clean as I like but big improvement. 2024-09-10 01:56:22 -04:00
Zed A. Shaw
dcf1a4020d Extract the FSM before beginning to use it. 2024-09-10 00:32:15 -04:00
Zed A. Shaw
b9025be45b After trying a few SFM libraries I found they're just too much for what I need, so here's the start of a simple one I can use. 2024-09-09 22:21:13 -04:00
Zed A. Shaw
356314406f Now using a std::async and future to do an async popen but I also need the FILE read in read_line to be async, so now I'm at a point where I have to refactor into a better statemachine. 2024-09-09 18:57:08 -04:00
Zed A. Shaw
501cb5fe25 Add information on configuration to the README.md 2024-09-09 01:28:30 -04:00
Zed A. Shaw
50c0ee3424 Reworked the builder code to setup for more async running of the build. 2024-09-09 01:10:47 -04:00
Zed A. Shaw
bc3790efd3 Forgot file, it will go away soon though. 2024-09-09 00:50:15 -04:00
Zed A. Shaw
0bac4dbfd9 First step in refactoring out the build running from the gui for later thread fiascos. 2024-09-08 20:01:10 -04:00
Zed A. Shaw
b0c9fefa9b Completely purge the coroutine stuff from the project. 2024-09-07 22:48:03 -04:00
Zed A. Shaw
453c50c563 Big cleanup of rampant using std. 2024-09-07 22:26:57 -04:00
Zed A. Shaw
fcd1225370 Last commit didn't build, this fixes it but next I'm removing it. 2024-09-07 16:33:08 -04:00
Zed A. Shaw
cacf72604f Very janky barely working coroutine version of the game, the UI is more responsive, but not as much as it should be. Still, take a look and study the coro.hpp and other files in this commit for some coroutine stuff. 2024-09-06 23:35:17 -04:00