The next little game in the series where I make a fancy rogue game.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
Zed A. Shaw
6add24fed2
Big revelation is that anytime you're doing file I/O you _must_ use std::filesystem. It simplifies so much about working with files.
2 years ago
assets
Cereal works pretty well so I may use it, but there's one more library I want to try first called tser.
2 years ago
scratchpad
This seems to be the best way to do this, but I kepts a few other experiments in scratchpad.
2 years ago
scripts
A bit more cleanup, but still looking for more organization.
2 years ago
tests
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.
2 years ago
wraps
Cereal works pretty well so I may use it, but there's one more library I want to try first called tser.
2 years ago
.gitignore
Ignore more irrelevant things.
2 years ago
.tarpit.json
Ignore more irrelevant things.
2 years ago
.vimrc_proj
Mostly working prototype that uses FTXUI to render to SFML and then plays a sound when you hit a wall.
2 years ago
LICENSE
Initial commit
2 years ago
Makefile
Renderer of ANSI codes to SFML is now working. Does seem to be a little slow but that'll be easy to fix later.
2 years ago
README.md
Fixes to make it build on OSX with old gear. I have an ancient OSX laptop that uses Clang 14 and it actuall works there. Amazing.
2 years ago
ansi_parser.cpp
Have to tweak when to test that true color is set, and also when to do it for the test.
2 years ago
ansi_parser.hpp
Refactored the ansi_parser into a class that can be reused between render calls.
2 years ago
ansi_parser.rl
Have to force the terminal detected by FTXUI to use full color no matter what it detects in the actual terminal.
2 years ago
collider.cpp
Learned yesterday that you can do a multi-return assing to auto[] by just returning a struct.
2 years ago
collider.hpp
Learned yesterday that you can do a multi-return assing to auto[] by just returning a struct.
2 years ago
combat.cpp
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.
2 years ago
combat.hpp
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.
2 years ago
components.hpp
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.
2 years ago
config.cpp
Have to force the terminal detected by FTXUI to use full color no matter what it detects in the actual terminal.
2 years ago
config.hpp
Have to force the terminal detected by FTXUI to use full color no matter what it detects in the actual terminal.
2 years ago
dbc.cpp
Initial commit that has most of what I need.
2 years ago
dbc.hpp
Initial commit that has most of what I need.
2 years ago
dinkyecs.hpp
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.
2 years ago
events.hpp
More refactoring to get the GUI dumber.
2 years ago
flecs.wrap
Brought in FLECS to play with, tomorrow we learn it.
2 years ago
fsm.hpp
Conver to using \ for member variables in classes. In structs just use the name.
2 years ago
gui.cpp
Config and save system almost there.
2 years ago
gui.hpp
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.
2 years ago
main.cpp
Config and save system almost there.
2 years ago
map.cpp
Cereal works pretty well so I may use it, but there's one more library I want to try first called tser.
2 years ago
map.hpp
Cereal works pretty well so I may use it, but there's one more library I want to try first called tser.
2 years ago
meson.build
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.
2 years ago
point.hpp
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.
2 years ago
rand.cpp
Just wrote my own entity system to figure it out.
2 years ago
rand.hpp
Just wrote my own entity system to figure it out.
2 years ago
render.cpp
Have to force the terminal detected by FTXUI to use full color no matter what it detects in the actual terminal.
2 years ago
render.hpp
Further cleaning of the renderer.
2 years ago
save.cpp
Big revelation is that anytime you're doing file I/O you _must_ use std::filesystem. It simplifies so much about working with files.
2 years ago
save.hpp
Big revelation is that anytime you're doing file I/O you _must_ use std::filesystem. It simplifies so much about working with files.
2 years ago
sound.cpp
Rendering code stripped out of the GUI code.
2 years ago
sound.hpp
Rendering code stripped out of the GUI code.
2 years ago
status.txt
Rendering with color is working now but still has problems with enabling/resetting the default colors.
2 years ago
systems.cpp
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.
2 years ago
systems.hpp
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.
2 years ago
tser.hpp
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.
2 years ago
tser.wrap
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.
2 years ago
roguish
The next little game in the series where I make a fancy rogue game.
OSX Build Notes
Quite a bad experience. Need to install Python, cmake, meson, and ninja all which are in homebrew but if you don't use homebrew then this is a problem.
You need to run the .command script in Application/your python that updates the SSL certs.
You have to give iTerm access to your keystrokes...because wtf it already has them?
This points out a problem that I'm getting the keys using FTXUI but should either get them from SFML or connect FTXUI to SFML's keyboard input events instead.
Takes forever to load on older computers, and I've got no idea why SFML is like that. It seems the sound system is a pig that takes forever to load, so am I using it wrong?
No actually this first run delay seems to be related to the security feature that blocks keyboard access on iTerm, so probably fixing that would speed it up.