Commit graph

29 commits

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