Commit graph

52 commits

Author SHA1 Message Date
Zed A. Shaw
48e28ee636 New dead_body_lootable sprite for dead things you can loot. 2025-08-10 12:30:42 -04:00
Zed A. Shaw
fc4eacadb0 There's now a Collision component that determines collision if its set. Closes #72. 2025-08-06 11:43:39 -04:00
Zed A. Shaw
aa72cfe4a4 Now have a working compass based directional player sprite in the map, but using the compass isn't going to work long term. Need to move that into the raycaster.cpp and get real degrees for facing direction. 2025-07-18 13:09:53 -04:00
Zed A. Shaw
f4fa50a413 Colors are now being loaded from assets/palette.json 2025-07-17 10:50:09 -04:00
Zed A. Shaw
5e01eb29a9 There's a bug where the last item in tiles.json draws a black square, which is why I named ceiling_blue to zceiling_blue to temporarily solve it. 2025-07-11 01:02:27 -04:00
Zed A. Shaw
3dc70c3af6 This implements base ambient lighting for tiles which helps with tiles like lava and ceiling lights. 2025-05-29 12:34:25 -04:00
Zed A. Shaw
dd463d7d6e Did a bunch of pixelation tests and I think this is the best setup so far. 2025-05-26 23:36:22 -04:00
Zed A. Shaw
931d9493d2 The raycaster can now pair a floor with a ceiling tile and to demonstrate this I have a blue light that shines on to a stone floor. I also played with just pixelating a regular image rather than painting it and honestly it looks better in a lot of ways. 2025-05-26 13:59:26 -04:00
Zed A. Shaw
2ceab51c40 A really shitty ritual crafting UI is working but needs a big reshape. 2025-04-29 23:59:40 -04:00
Zed A. Shaw
5ffa3b0d1e Everyone is on fire temporarily. 2025-04-15 19:34:39 -04:00
Zed A. Shaw
c7c48658bd Lots of dumb little edits to sort out what I'm aiming at. I'll next clean out most of this in a refactor. 2025-04-06 15:32:19 -04:00
Zed A. Shaw
c014e65c13 Gave up on trying to get the GOAP algorithm to correctly apply the cost structure to competing choices, and instead I take the resulting action list and simply find the next best one based on cost. 2025-04-01 13:48:59 -04:00
Zed A. Shaw
2e79cf8781 Map is way better and components::Tile is _vastly_ improved by switching to a wchar_t on display and letting nlohmann::json auto convert it for me. 2025-03-22 02:10:56 -04:00
Zed A. Shaw
acbf384e2a Fixed some of the easing functions but still not sure with RAT_GIANT doesn't move. 2025-03-20 04:25:15 -04:00
Zed A. Shaw
c4611c0138 Right before coverage destroys everything. 2025-03-16 23:17:43 -04:00
Zed A. Shaw
75db188dc6 AI is now mostly working. Enemies will attack the player, and some of them are marked as not tough so they'll run away when they get low health. 2025-03-15 11:43:46 -04:00
Zed A. Shaw
ad71631809 Enemies and now using the GOAP AI to decide when to attack the player, but it's very rough right now. I need to sort out how to store the AI states and use them in the System. 2025-03-14 11:14:25 -04:00
Zed A. Shaw
8b414c13e6 Animations now can have a stationary option which tries to keep them 'in place' while growing, effectively removing the forward motion. 2025-03-04 12:12:27 -05:00
Zed A. Shaw
ca18422930 BossFightUI is not managed by the level manager since it is kind of a new level, just with a different mini game. 2025-03-03 11:15:49 -05:00
Zed A. Shaw
a3f6ba3c03 Refactored the bossfight_ui so it will work with any description of a boss fight. 2025-03-02 12:36:08 -05:00
Zed A. Shaw
43835da88f Bosses and other enemies now have a 2 frame animation, the first boss the Rat King now screams at you and attacks. 2025-03-01 13:41:42 -05:00
Zed A. Shaw
b3b8cbbeee Started to set things up so that the boss fight UI can load enemies and configs out of the components setup. 2025-03-01 00:46:40 -05:00
Zed A. Shaw
033358749f Animations now have an easing/ease_rate setting that will do a dynamic scaling effect on them during the animation sequence. 2025-03-01 00:24:19 -05:00
Zed A. Shaw
2d790c5986 Boss fight looking better, but I need to get this bounce animation in the main game fights. 2025-02-28 13:03:13 -05:00
Zed A. Shaw
25d782df6d Start and stop some sounds and add a little bit of reverb to sounds so they fit the 'dungeon' theme. 2025-02-28 10:48:45 -05:00
Zed A. Shaw
a8ae6df13b Brought in some sounds from Soundly so now it's more complete with audible attacks and death sounds. 2025-02-28 10:20:28 -05:00
Zed A. Shaw
b75a2b8c31 Add the rat king. 2025-02-26 10:32:39 -05:00
Zed A. Shaw
1886c99920 A few tweaks to make the HP bar work constnantly, probably not the most efficient but it's good enough for now. 2025-02-24 12:05:54 -05:00
Zed A. Shaw
e0e7a1027c Inventory system basically works now but is in a alpha hack stage. Time to refactor. 2025-02-23 22:57:27 -05:00
Zed A. Shaw
fa6311f10c Add an ability to mark the main UI dirty so that it forces a render at specific times. 2025-02-22 23:26:47 -05:00
Zed A. Shaw
806f8e4e1a Make enemies always twitch forward a bit, even if they have animation frames. 2025-02-22 22:40:44 -05:00
Zed A. Shaw
3720340ab7 Have a really bad walking sound. 2025-02-22 13:26:33 -05:00
Zed A. Shaw
20cbc3a21c Working sound system and most enemies have a sound effect. This will make it easier to add sounds now. 2025-02-22 12:48:37 -05:00
Zed A. Shaw
83df9ff03b Super awesome twitchy animation for axe guy. 2025-02-22 11:03:38 -05:00
Zed A. Shaw
80a0f2ba75 Basic simple animations where the enemies just move forward. 2025-02-22 01:36:31 -05:00
Zed A. Shaw
947ccbe180 A simple config loader test. 2025-02-21 23:17:53 -05:00
Zed A. Shaw
b43553a563 Major speed up in rendering by only doing it when we move, but drawing the rendered 3d view texture constantly. 2025-02-21 11:34:46 -05:00
Zed A. Shaw
0199248354 New axe wielding ranger for you to kill. 2025-02-19 13:24:54 -05:00
Zed A. Shaw
e04c03b381 Small error in how mouse events are processed. I need to do them _outside_ of the guecs::UI so that the event is checked once and then confirmed in all grids. Then created a tombstone device to be used as a dead enemy marker that will later allow looting. 2025-02-19 08:33:18 -05:00
Zed A. Shaw
615599084a Bring in a spider enemy. 2025-02-17 14:34:50 -05:00
Zed A. Shaw
7c1f05c801 Combat UI is alright but need to now make a few common widgets. 2025-02-16 19:27:57 -05:00
Zed A. Shaw
e7e0df6b70 New rat enemy. 2025-02-14 15:22:47 -05:00
Zed A. Shaw
d2700d2928 You now have blood on your screen when below half health. 2025-02-13 13:15:20 -05:00
Zed A. Shaw
583ad6d9c5 Create a bunch of textures for sprites in the game. 2025-02-11 20:46:44 -05:00
Zed A. Shaw
421cca308b Fixed player showing up as an enemy and did better map centering. 2025-02-11 11:10:18 -05:00
Zed A. Shaw
abd843d5ec Very basic attack system. 2025-02-10 14:06:38 -05:00
Zed A. Shaw
6bca6d021e Sprite is now a component we can place on anything to render it. 2025-02-10 12:58:24 -05:00
Zed A. Shaw
0cbe20af35 Fix up the colors and rendering so that tilemap just uses components::Tile all the time. Need to load all of the config data from json one time on system start instead of constantly, although constantly does make debugging live easier. 2025-02-09 15:54:17 -05:00
Zed A. Shaw
27bb08d62c Tell json to be more strict about missing fields to avoid that bug in the future, then fix all of the data. 2025-02-09 14:17:07 -05:00
Zed A. Shaw
b6831b75a3 This fixes the stupid 'bug' where nothing would render because I actually had the data type wrong in the json after moving to the new format. 2025-02-09 14:05:39 -05:00