Commit graph

57 commits

Author SHA1 Message Date
Zed A. Shaw
14b3ea7676 Inventory system is mostly working and I can pick up everything and use it. 2025-01-04 13:32:26 -05:00
Zed A. Shaw
135d9a128b Basic inventory system working and can pick up items but needs to be reflected in the UI next. 2025-01-03 13:41:57 -05:00
Zed A. Shaw
3d461bce6d Very simple items system to get into the inventory work. 2025-01-01 13:21:01 -05:00
Zed A. Shaw
d8400d0a76 Tinkering with a way to do modal UIs for things like inventory etc. 2024-12-30 09:41:16 -05:00
Zed A. Shaw
194cc6664b Lighting is working way better and now for world generation work. 2024-12-28 12:04:21 -05:00
Zed A. Shaw
f46b5f15ef Lighting now uses pathing to determine where it can go, but _distance_ to determin strength. Looks way better. 2024-12-26 04:39:07 -05:00
Zed A. Shaw
9ac8da30ea Circle adjusted to work better but now I think hirdrac was right that it's easier to just calculate a distance from center and use that to determine light levels rather than a whole dpath. 2024-12-25 06:03:11 -05:00
Zed A. Shaw
35f2defc11 Better lighting and a circle algorithm that works more reliably. 2024-12-25 00:27:45 -05:00
Zed A. Shaw
5a6494acf5 Fixing a stupid bug where it would crash because a fact wasn't in the world. 2024-12-19 20:46:47 -05:00
Zed A. Shaw
93f53d1714 Tests are failing but catch2 is too stupid to actually tell me where so here you go. Now if you hit L it'll turn the lights up to max and if you hit P it will show the pathing. 2024-12-19 20:04:10 -05:00
Zed A. Shaw
eb0ca38e30 Removed the variable limit setting since it's never used and instead just have WALL_PATH_LIMIT. 2024-12-05 08:41:10 -05:00
Zed A. Shaw
ae43dad499 Minor fixes to make initializing the terminal more consistent and to remove a magic number for wall limits. 2024-12-04 08:19:04 -05:00
Zed A. Shaw
c7607533ce A bit of a quick test for the GUI system, but not sure how to make this do more. 2024-12-02 17:02:59 -05:00
Zed A. Shaw
68d8bdce12 Map is now cleaned out of anything not directly related to the map, and there's a new WorldBuilder class that will turn into a more sophisticated random world generator. 2024-12-02 06:32:00 -05:00
Zed A. Shaw
3f7a9cc124 Lighting is now in its own class using the new Pathing class. This should allow me to make it more consistent and possibly make Pathing more efficient. 2024-12-01 17:54:43 -05:00
Zed A. Shaw
988edf13d7 Map is now working well and all light is good but it's causing saturation fatigue because of the low levels and low saturation. I'll have to work on contrast and probably jut up the wall contrast. 2024-11-28 04:27:14 -05:00
Zed A. Shaw
54fa1a23ce Refactor the light calculations to be part of map instead of spread out all over. Still need to bring back lighting on walls and also pathing for enemies is currently busted. 2024-11-28 02:41:01 -05:00
Zed A. Shaw
0e8a2e520a Light works with multiple sources and strengths, walls are faked out but I think I may keep that to make it easier to play. 2024-11-27 04:02:57 -05:00
Zed A. Shaw
6174df5ec7 Lighting now works, now to get multiple lights. 2024-11-26 05:03:49 -05:00
Zed A. Shaw
62f986719d Quick hack to test finding a better light. If you find the gold you get a better light. 2024-11-25 02:38:24 -05:00
Zed A. Shaw
fb1fd9d8bc A bit of some clean up, API unifying, and some performance tweaks. 2024-11-22 23:12:18 -05:00
Zed A. Shaw
15a302d133 Renderer is now more standalone and doesn't try to protect against small maps, that's the GUI's job. 2024-11-21 15:51:22 -05:00
Zed A. Shaw
3bb3b654e7 Fixes to build on non-windows and give the answer parser a real name. 2024-11-19 13:23:38 -05:00
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
0e79288afc More notes on the next things to do. 2024-11-07 02:06:22 -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
67cacd5dcd Can actually save the game now. 2024-11-06 22:24:23 -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
da63f006c2 Config and save system almost there. 2024-11-05 21:33:28 -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
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
e864e14eab Rendering with color is working now but still has problems with enabling/resetting the default colors. 2024-11-02 06:02:13 -04:00
Zed A. Shaw
9397af2a11 Rendering code stripped out of the GUI code. 2024-10-30 18:54:51 -04:00
Zed A. Shaw
009b1e63a7 More refactoring to get the GUI dumber. 2024-10-30 02:13:31 -04:00
Zed A. Shaw
710076edfb Pulled most of the variables out so now I can carve out functions. 2024-10-02 18:14:54 -04:00
Zed A. Shaw
a7f6357e12 Refactor the entity out. 2024-10-02 17:29:49 -04:00
Zed A. Shaw
cac7017563 Prepared to rework and refactor. 2024-10-02 17:10:21 -04:00
Zed A. Shaw
8aa982e5ea Make the changes for the new assets layout. 2024-10-02 16:59:30 -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
69fa7d9e4e Make doors randomly on the rooms. 2024-09-30 23:51:05 -04:00
Zed A. Shaw
dd6d29ed7d A ton of the game basic functions are now working. I have a random gen man, enemies, and enemies pathing to you. 2024-09-30 00:49:55 -04:00
Zed A. Shaw
2e8abbaf5e Our hero can walk around the world and won't go through walls. 2024-09-30 00:04:58 -04:00
Zed A. Shaw
3a43324fa2 Random map gen is mostly working, now to clean it up. 2024-09-29 22:36:13 -04:00
Zed A. Shaw
a82944f55a Jank thoughts on using the dijk map to walk from door to door for tunnels. 2024-09-28 18:15:00 -04:00
Zed A. Shaw
f48f9d9bc5 If you just pick the wider of the dimensions then you get a more even spread vs random direction. 2024-09-28 04:06:30 -04:00
Zed A. Shaw
e1ebea7451 Working mostly correct now, just need to tweak how it works more and work on connections. 2024-09-28 03:58:26 -04:00
Zed A. Shaw
56cc38006b NOTWORKING: Committing this so I can show the changes I made on the next stream. 2024-09-28 02:44:36 -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