Zed A. Shaw
|
d99d9a68c8
|
Tried to use Ragel to create state machines but its lacking an incremental mode and doesn't do any logging of state activity so debugging is harder. Put it in scratchpad for reference though.
|
2025-06-14 12:34:27 -04:00 |
|
Zed A. Shaw
|
7fc32b0248
|
Trying out Ragel's state machine generation as an alternative to the DinkyFSM style.
|
2025-06-14 00:43:40 -04:00 |
|
Zed A. Shaw
|
9468990f76
|
DNDLoot works now, just had to fix a problem with the constructor.
|
2025-06-13 10:46:05 -04:00 |
|
Zed A. Shaw
|
82ee8f68f7
|
Created a separate FSM for the DND functionality that compiles but need to wire it in to work.
|
2025-06-13 00:57:45 -04:00 |
|
Zed A. Shaw
|
1ab708c4eb
|
Clean up more of the FSM so that it's almost nothing.Now I'll try to make a stand-alone 'dnd' state machine to handle drag and drop functionality.
|
2025-06-12 22:51:58 -04:00 |
|
Zed A. Shaw
|
af933c827a
|
Have a separate container vs. item loot for the different situations where you're pick items out of a container vs. an item on the ground.
|
2025-06-12 19:41:32 -04:00 |
|
Zed A. Shaw
|
2aa4f0a2e8
|
Finally can pick things up, but it's really bad so far. Need a bunch of refactoring in how the collision system works, and make it so collision and maps can have multiple entities in the same square.
|
2025-06-12 13:06:36 -04:00 |
|
Zed A. Shaw
|
2458f01ebd
|
Loot UI now opens when you can loot something, but it's still buggy and doesn't always show the stuff.
|
2025-06-12 00:10:21 -04:00 |
|
Zed A. Shaw
|
86eabed3db
|
Now when you loot an item the loot UI works.
|
2025-06-11 23:49:37 -04:00 |
|
Zed A. Shaw
|
38159a5f84
|
Fix the window coordinates so that you can resize.
|
2025-06-11 00:56:41 -04:00 |
|
Zed A. Shaw
|
d6c5a89251
|
Fix the last few loot bugs before actually implementing the data model for inventory and loot.
|
2025-06-10 22:58:57 -04:00 |
|
Zed A. Shaw
|
4a48910273
|
There's a UISystem now for to compliment the entities and components in GUECS. I now use that to do the drag/drop transfers instead of raw code right in the FSM.
|
2025-06-10 13:13:40 -04:00 |
|
Zed A. Shaw
|
e01e697535
|
Move now works better, and the API is a lot cleaner. Now just need to make it not crash.
|
2025-06-10 11:12:04 -04:00 |
|
Zed A. Shaw
|
be7b86a913
|
Mostly refactored out the common things for drag/drop so now just to refine how it's used and bring back moving the sprite around.
|
2025-06-10 00:52:38 -04:00 |
|
Zed A. Shaw
|
570b70ab0c
|
More of the drag/drop is handled by the GrabSource/DropTarget components.
|
2025-06-09 23:59:44 -04:00 |
|
Zed A. Shaw
|
7a551cf83a
|
Remove commit_drop from status and loot UI since DropTarget already does that.
|
2025-06-09 22:57:49 -04:00 |
|
Zed A. Shaw
|
343f3a246f
|
Cleaned up and unified the source before the big refactor.
|
2025-06-09 22:31:15 -04:00 |
|
Zed A. Shaw
|
0d6a71b06f
|
Fixed a couple little bugs in the state so now can refactor out the dnd code.
|
2025-06-09 22:18:13 -04:00 |
|
Zed A. Shaw
|
2a6b892e7f
|
Can now round-trip a torch from loot to inventory and back.
|
2025-06-09 14:02:26 -04:00 |
|
Zed A. Shaw
|
4b0d76bbcc
|
Even better API, but still not the best organization. This will let me implement both sides, then I can pull it out and try to generalize it into a few guecs components.
|
2025-06-08 23:55:59 -04:00 |
|
Zed A. Shaw
|
3e0adf0c22
|
Better meaning API on both sides for the drag-n-drop operations, but I _swear_ there's a way to do this in the GrabSource/DropTarget instead.
|
2025-06-08 23:27:43 -04:00 |
|
Zed A. Shaw
|
47c219b86e
|
Disable inventory select for now until I can get drag-n-drop formalized better.
|
2025-06-08 22:15:25 -04:00 |
|
Zed A. Shaw
|
e1c2869d1c
|
Sometimes we click too fast in the router to just handle it in IDLE.
|
2025-06-08 22:06:12 -04:00 |
|
Zed A. Shaw
|
461ad03d27
|
Taking things from the LootUI to the StatusUI works way better now and there's a DropTarget to match the GrabSource.
|
2025-06-08 00:37:30 -04:00 |
|
Zed A. Shaw
|
842aac3127
|
Worked out an initial stab at a GrabSource for drag-n-drop or just simple grabbing things in the UI.
|
2025-06-07 15:29:18 -04:00 |
|
Zed A. Shaw
|
94385b195d
|
Mostly worked out how to do looting but now need how to take out of inventory and put into loot.
|
2025-06-07 00:11:29 -04:00 |
|
Zed A. Shaw
|
c509162be1
|
The event router is working well and I can do drag-n-drop but I'll have to rethink where to use it.
|
2025-06-05 23:31:38 -04:00 |
|
Zed A. Shaw
|
5aa54d875f
|
Initial first steps in pulling the SFML event processing out of the gui::fsm so that I can handle more complex things like drag and drop.
|
2025-06-05 01:23:52 -04:00 |
|
Zed A. Shaw
|
0674908e49
|
Implemented an initial cut at the event router. Its job is to take the random events from SFML and translate them into nice clean orderly events to the Gui::FSM.
|
2025-06-04 12:19:24 -04:00 |
|
Zed A. Shaw
|
5c47a0151c
|
Basic loot UI mostly working. Each time you open there's a torch and you can place it visually on any slot on your character.
|
2025-06-03 13:43:16 -04:00 |
|
Zed A. Shaw
|
4b34de2109
|
Initial loot UI works to load an item by its world entity ID.
|
2025-06-02 23:34:31 -04:00 |
|
Zed A. Shaw
|
ab391aaa97
|
Have a plan for the new inventory and looting system, now have to implement it. Temporarily you can't pick anything up, but it will go away.
|
2025-06-02 00:58:16 -04:00 |
|
Zed A. Shaw
|
b8d2d1870d
|
Clean up the debug UI so that it's not using the jank debug component I didn't use anyway.
|
2025-06-01 11:10:25 -04:00 |
|
Zed A. Shaw
|
dc8648016d
|
Refactor the way assets are laid out in the assets/ dir and then have a build script that can automatically pixelate/posterize images that I save, saving me tons of time.
|
2025-05-30 17:49:15 -04:00 |
|
Zed A. Shaw
|
3dc70c3af6
|
This implements base ambient lighting for tiles which helps with tiles like lava and ceiling lights.
|
2025-05-29 12:34:25 -04:00 |
|
Zed A. Shaw
|
3a745d492a
|
Refactored out the tilemap since it was mostly doing nothing useful.
|
2025-05-25 11:39:43 -04:00 |
|
Zed A. Shaw
|
90c37fe4c9
|
Fixing up how rotation works with combat and then making the lighting better.
|
2025-05-22 14:25:42 -04:00 |
|
Zed A. Shaw
|
4eaf3c35d6
|
Fixed up the map generator so that it's placing entities in non-overlapping tiles and adapting the style for the size. It can also deal with maps that have no rooms better and places the stairs better.
|
2025-05-22 12:24:59 -04:00 |
|
Zed A. Shaw
|
5f1a453fb4
|
Refactored the maze functions to be a builder that can do different things to the maze. Also when I hit p in the game it'll save the map to a file. This was extremely hard for no reason.
|
2025-05-21 13:56:53 -04:00 |
|
Zed A. Shaw
|
a0b785cb2a
|
Hunt-and-kill algorithm rocks. It handles everything I need for map gen, including spawn points, room placement, and the maze like map.
|
2025-05-19 01:40:23 -04:00 |
|
Zed A. Shaw
|
7a0b2f988d
|
Add a terrible maze generation algorithm to test if a maze style map looks/feels better. The walls are disabled so you can walk around.
|
2025-05-18 01:00:47 -04:00 |
|
Zed A. Shaw
|
0eb245d113
|
Working on a better character view.
|
2025-05-16 01:22:12 -04:00 |
|
Zed A. Shaw
|
d6e64dd06b
|
The log is now moved to the map, but changing StatusUI caused a weird compiler error so need to remove logs from that separate.
|
2025-05-16 00:43:45 -04:00 |
|
Zed A. Shaw
|
a2246d2b71
|
Move the map_view and mini_map into gui as well.
|
2025-05-16 00:07:24 -04:00 |
|
Zed A. Shaw
|
bed5ce22d2
|
Move gui_fsm to fsm but this causes some problems.
|
2025-05-15 23:54:59 -04:00 |
|
Zed A. Shaw
|
cc44c9d37a
|
Move the guecstra stuff into the gui.
|
2025-05-15 22:50:59 -04:00 |
|
Zed A. Shaw
|
dfc6aa08e9
|
Loot UI is now mostly formed, just need to get loot into it and make it work.
|
2025-05-14 11:49:09 -04:00 |
|
Zed A. Shaw
|
8545b8cf1d
|
Simple Loot UI started.
|
2025-05-14 00:51:53 -04:00 |
|