Commit graph

16 commits

Author SHA1 Message Date
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
a9217e8423 Now have a basic prototype lighting system. 2024-11-25 02:32:16 -05:00
Zed A. Shaw
19b8bf1850 Totally a pile of garbage with a bunch of debug prints because I'm going to have to rewrite the renderer resizing to allow for any size image, not just the map. But this does display an image using averaged squares. 2024-11-21 02:49:58 -05:00
Zed A. Shaw
64855f3c90 The gui can now pop open a modal based on clicking a button but I need to manage focus next. 2024-11-17 13:23:18 -05:00
Zed A. Shaw
34c84343db Mostly working now, just had to manually calculate the grid. Needs a cleanup but I'm moving on for now. 2024-11-17 12:37:07 -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
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
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
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
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
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
6ca4614fcb A bit better method of setting foreground vs. background. 2024-11-01 04:15:37 -04:00
Zed A. Shaw
2d550978b8 This seems to be the best way to do this, but I kepts a few other experiments in scratchpad. 2024-11-01 04:08:16 -04:00
Zed A. Shaw
058ab23fa2 This also does almost the same thing but using fgoto to switch between ansi and not. 2024-11-01 01:08:26 -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