Commit graph

92 commits

Author SHA1 Message Date
Zed A. Shaw
89a70f398a Rewrote the ansi parser to exactly callback on color setting, so now just need to clean this all up and fix a few little bugs. 2024-11-16 12:10:14 -05:00
Zed A. Shaw
9bc9c9007f Now have a nice panel to hold all the UI panels we'll use later. 2024-11-11 12:23:40 -05:00
Zed A. Shaw
badc0ca438 The json output is a problem but I don't even use it. 2024-11-08 21:45:40 -05:00
Zed A. Shaw
43fb60ebaa Removed the ambient sound until I can redesign it. 2024-11-08 13:24:31 -05:00
Zed A. Shaw
113811bc84 Got some new sounds and camera shake came back but has a bug. 2024-11-08 13:18:43 -05:00
Zed A. Shaw
ed9d0de8e0 Event system now accepts any data and the GUI receives simpler events with data for them. 2024-11-07 09:16:21 -05:00
Zed A. Shaw
0a268591c2 Started working on the loot system which will eventually become the inventory/improved collision system. 2024-11-07 00:29:06 -05:00
Zed A. Shaw
b2ed598c1f Kind of working save now, but does have problems with dead things. 2024-11-06 15:06:10 -05:00
Zed A. Shaw
99d56b246c Looks like this is _possibly_ working but the last step of actually loading a save needs to be figured out. 2024-11-06 07:18:59 -05:00
Zed A. Shaw
71bc97a016 Save system should work better now, just needed to switch to basic map. This would probably a lot better if tser.hpp supported std::any. 2024-11-05 06:11:50 -05:00
Zed A. Shaw
d113dba42f Almost working save sytem but the data I store is totally wrong. I need to also save the entity IDs being used and map them to the components. 2024-11-05 02:38:36 -05:00
Zed A. Shaw
babc190525 Tser can now output wstring and already saves wstring, so now need to use it. 2024-11-04 23:58:56 -05:00
Zed A. Shaw
b113b90257 Cleaned up the tests for tser more and then removed cereal. 2024-11-04 22:30:48 -05:00
Zed A. Shaw
bf57713416 Stripped tser.hpp down to the essentials so I can study it. No base64 encoding, less than comparison (wtf is that for), and I may even remove the 'json' output. 2024-11-04 09:10:27 -05:00
Zed A. Shaw
713d400d17 Cereal works pretty well so I may use it, but there's one more library I want to try first called tser. 2024-11-04 05:07:49 -05:00
Zed A. Shaw
ddf1ba955c Now have a working config manager that can exist in the world properly. 2024-11-03 05:57:35 -05:00
Zed A. Shaw
f6ddf4b03b Make it clear this is testing an ftxui setting. 2024-11-03 01:24:26 -05:00
Zed A. Shaw
f223257aad Have to tweak when to test that true color is set, and also when to do it for the test. 2024-11-03 01:21:00 -05:00
Zed A. Shaw
707e9e3d6e Have to force the terminal detected by FTXUI to use full color no matter what it detects in the actual terminal. 2024-11-03 00:16:52 -04:00
Zed A. Shaw
0ba789697a Basic config system from a json file but it's got serious issues. Can't copy construct it because of the variable blocking copying, and it can't even be put into the dinkyecs in any way. 2024-11-02 21:14:58 -04:00
Zed A. Shaw
fd8180bc61 Refactored the ansi_parser into a class that can be reused between render calls. 2024-11-02 16:56:46 -04:00
Zed A. Shaw
a36b187879 Renderer of ANSI codes to SFML is now working. Does seem to be a little slow but that'll be easy to fix later. 2024-11-02 03:53:33 -04:00
Zed A. Shaw
ae484bf425 ANSI code renderer starts working but I have to make it utf8/wchar_t friendly. 2024-11-01 18:07:47 -04:00
Zed A. Shaw
f32b39afe2 Barely working ansi color codes parser but I _really_ don't like this one. Too much code to just get it to process correctly which means it'll be brittle as hell later. 2024-11-01 00:40:42 -04:00
Zed A. Shaw
da8011cb14 Can just use the enum as the type for the map but it'd be nicer if I could use a class enum without tons of template BS. 2024-10-29 17:49:54 -04:00
Zed A. Shaw
3f87d19911 Simple event system for entities in the world. 2024-10-29 17:27:12 -04:00
Zed A. Shaw
ea6cf1362b Create a test for the ECS before we add more functionality. 2024-10-29 16:04:40 -04:00
Zed A. Shaw
4ed06b10b1 Need the hit.wav to be mono, but now we have a sound we can move around, just not sure how to place it based on the visuals. 2024-10-28 19:46:55 -04:00
Zed A. Shaw
5a123ae74c Refactor some code to have better naming and move Point and related point things into their own .hpp. 2024-10-26 18:26:42 -04:00
Zed A. Shaw
c19cd707d1 Better unit test for the collision system. 2024-10-26 18:13:06 -04:00
Zed A. Shaw
ec1ed23c52 Now using a simple collision map to track entities and then determine if they're near the player for attacking. 2024-10-26 04:33:23 -04:00
Zed A. Shaw
743f906bc7 Implemented a simple collision hash table. 2024-10-25 22:31:09 -04:00
Zed A. Shaw
5cf66aad02 Conver to using \ for member variables in classes. In structs just use the name. 2024-10-03 17:05:23 -04:00
Zed A. Shaw
feda66defd Mostly working prototype that uses FTXUI to render to SFML and then plays a sound when you hit a wall. 2024-10-02 16:56:06 -04:00
Zed A. Shaw
62195e6eea A dirty first cut at a single random horiz/vert split for the BSP algorithm. 2024-09-27 18:42:32 -04:00
Zed A. Shaw
6cb3366912 I can make a map with one room 'randomly' generated and calculate paths. 2024-09-27 00:10:41 -04:00
Zed A. Shaw
8b67a25732 Cleaned up the map for more work. 2024-09-26 23:14:42 -04:00
Zed A. Shaw
4f863c2635 Dijkstra thing is working on a sample map. 2024-09-26 17:56:40 -04:00
Zed A. Shaw
c6d298023a Need the test file.json 2024-09-26 16:56:01 -04:00
Zed A. Shaw
ebb5360c5c Fixed the bug that made walls not receive the algorithm. 2024-09-26 16:55:42 -04:00
Zed A. Shaw
4d748d1f48 Initial Dijkstra algorithm for the map, but doesn't quite work right. The walls in the wall_map are not accounted for in the algorithm. 2024-09-26 01:22:25 -04:00
Zed A. Shaw
ad143dca05 Initial commit that has most of what I need. 2024-09-24 18:28:01 -04:00