Commit Graph

64 Commits

Author SHA1 Message Date
Joachim Lusiardi 50d98bfb4d work on level generation including tests 2024-10-31 07:48:22 +01:00
Joachim Lusiardi c429784775 run tests on all branches 2024-10-30 13:06:26 +01:00
Joachim Lusiardi e96660cea0 redo some colors 2024-10-30 13:01:28 +01:00
Joachim Lusiardi c6492c28c2 work on level generator 2024-10-30 08:56:45 +01:00
Joachim Lusiardi 7f288dbcd1 first version of the level new generator
monsters and artefact are missing
roomsize is fixed
2024-10-29 06:48:45 +01:00
Joachim Lusiardi 74831857cf fix monster percentage 2024-10-27 06:24:40 +01:00
Joachim Lusiardi 1ae7ff45ab Rename treasure room 2024-10-27 06:24:14 +01:00
Joachim Lusiardi b833b43c7c Extract constants and make monsters variable per level 2024-10-26 17:00:51 +02:00
Joachim Lusiardi e490011b4e use macros to create monsters 2024-10-25 07:21:34 +02:00
Joachim Lusiardi 8267ad083f fix player tests 2024-10-24 09:09:29 +02:00
Joachim Lusiardi 38dc7285c2 try to improve monster handling 2024-10-24 08:57:52 +02:00
Joachim Lusiardi 6f4c37728f make size of levels variable 2024-10-23 15:54:33 +02:00
Joachim Lusiardi 5111fec1fa fixed message while changing levels 2024-10-23 15:53:28 +02:00
Joachim Lusiardi 9fb3c83b67 more documentation 2024-10-23 15:53:04 +02:00
Joachim Lusiardi 9ae713b6c8 make variable inventory slots 2024-10-22 13:39:43 +02:00
Joachim Lusiardi 5949b2a2d6 limit inventory to 10 slots 2024-10-21 21:59:55 +02:00
Joachim Lusiardi 2b8f7eebba unused potions now are collected in the inventory and can be consumed with the p key 2024-10-21 21:52:07 +02:00
Joachim Lusiardi a0635de65a reorder key handling 2024-10-21 20:37:52 +02:00
Joachim Lusiardi d6f4fdaa5b add CI/CD 2024-10-21 08:30:24 +02:00
Joachim Lusiardi 8dfe56a3c2 randomize content of chests and potions 2024-10-21 08:27:55 +02:00
Joachim Lusiardi b3d85ac7b3 Improved fights between player and monster 2024-10-21 08:26:51 +02:00
Joachim Lusiardi cefb0cc5f2 improve combat system 2024-10-20 22:12:28 +02:00
Joachim Lusiardi efc4cdd363 updated deps
fixed clippy remarks
2024-10-20 14:59:20 +02:00
Joachim Lusiardi 210d590e38 prevent player from leaving the field 2024-01-03 09:12:00 +01:00
Joachim Lusiardi e4018d9cce remove unused import 2024-01-01 15:34:52 +01:00
Joachim Lusiardi f6bb0a9297 version can be displayed as message 2023-12-31 18:10:09 +01:00
Joachim Lusiardi b6d61e4bd1 Merge remote-tracking branch 'origin/include_git_hash' into add_messages 2023-12-31 17:45:42 +01:00
Joachim Lusiardi 85496e3200 make git commit hash available at compile time 2023-12-31 17:41:59 +01:00
Joachim Lusiardi 4770a21abe for changes to add messages 2023-12-31 15:59:52 +01:00
Joachim Lusiardi a69e89c806 Only consume potions if they have an effect 2023-12-30 16:44:23 +01:00
Joachim Lusiardi b3d64f7438 Monsters can attack player now 2023-12-30 16:31:27 +01:00
Joachim Lusiardi b88bc67c50 monsters move and attack the player 2023-12-26 19:11:41 +01:00
Joachim Lusiardi 2098bedabe make monsters more like players 2023-12-26 11:38:23 +01:00
Joachim Lusiardi c0d51f501f extract has_position trait 2023-12-25 13:47:15 +01:00
Joachim Lusiardi bb8a24aa91 clean up monsters 2023-12-25 13:26:45 +01:00
Joachim Lusiardi 67faae44b1 Prevent crashes when terminal is too small 2023-12-25 08:44:44 +01:00
Joachim Lusiardi de5ea76913 step to xp 2023-12-22 20:10:30 +01:00
Joachim Lusiardi 6082a740e9 make chest's gold depend on level 2023-12-22 09:52:50 +01:00
Joachim Lusiardi db96dc5c8a Add gold to the result message 2023-12-21 23:13:13 +01:00
Joachim Lusiardi 2a86201c3e add 3 distinct outcomes for the game 2023-12-21 23:02:06 +01:00
Joachim Lusiardi 6b6206370b Make enemies randomized 2023-12-18 17:04:48 +01:00
Joachim Lusiardi 73315a7636 monsters as trait 2023-12-18 16:11:19 +01:00
Joachim Lusiardi 7ac3b76e6c add some documentation 2023-12-17 22:00:42 +01:00
Joachim Lusiardi f87712e8d2 clean up code 2023-12-17 19:48:58 +01:00
Joachim Lusiardi 8b21e179c2 fight monsters, collect artifacts 2023-12-17 16:14:17 +01:00
User Jlusiardi 643f3b76f9 More work 2023-12-09 22:43:06 +01:00
Joachim Lusiardi 206a49fb08 reworked level widget to stateful widget 2023-12-09 20:16:03 +01:00
Joachim Lusiardi 6e2441aad1 give different artifacts differen looks 2023-12-09 20:05:39 +01:00
Joachim Lusiardi 4a024a47d9 randomize artifact generation 2023-12-09 17:39:26 +01:00
Joachim Lusiardi e47036bd8d more tests 2023-12-09 08:43:41 +01:00