9cbbb9636f
combat: add hit chance & damage variance to make combat more engaging
...
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ia1e0a503dba03e5df7b863b97db962e36a6a6964
2026-04-03 16:37:12 +03:00
fdc0657237
nix: add direnv manifest
...
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Idcd1d80b8d1cc8989177415a5f798f076a6a6964
2026-04-03 15:45:17 +03:00
de2ce8ba43
player: add equipment slots and inventory overlay
...
- Weapon/armor equip slots persist until replaced
- Numbered inventory overlay with I key
- E to equip from inventory, U to use potions"
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I474acd676da3b768c1aac24f75f303e86a6a6964
2026-04-03 15:45:16 +03:00
e4926a86fe
player: implement manual pickup and descend confirmation
...
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Icd8d0ffd9bdf92f5c8943590886543566a6a6964
2026-04-03 15:45:15 +03:00
db21bdacdd
various: add speed/cooldown & initiative system
...
- Goblins act every ~2 turns, skeletons ~1.5, orcs ~1.2
- Enemies accumulate cooldown based on speed, act when <= 0
- Player always acts every turn (speed = 100)"
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Id822579a0326887d91a80bd4ab27a72d6a6a6964
2026-04-03 15:45:14 +03:00
8f6650919d
chore: setup clang-format for formatting
...
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I322b7dd5dcd699247b58fe9f5db7bcd86a6a6964
2026-04-03 15:45:13 +03:00
786fce3814
various: consolidate game state into a GameState struct
...
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I9d8998707c02e64cf177a6eeb51e399e6a6a6964
2026-04-03 15:45:12 +03:00
d3798cc99f
map: add is_floor() helper to check walkable tiles
...
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I7368f74d1cbcf5913e5d8e9331cfa4326a6a6964
2026-04-03 15:45:11 +03:00
c61e31f628
player: correct item pickup order to copy before marking picked_up
...
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ie226b4a0ae6566ca77ab49b7d22f36726a6a6964
2026-04-03 15:45:10 +03:00
5fbe7c8c60
core: fix enemy movement collision with the player
...
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I8bfcc0f8816fbc02dbd7ad462b5c0a4e6a6a6964
2026-04-03 15:45:09 +03:00
0894466532
audio: allocate samples dynamically to avoid share static buffer corruption
...
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I48808e87cf3aea831daff726eb7123a96a6a6964
2026-04-03 15:45:04 +03:00
4908a32661
Merge pull request 'dev: added step_count and health recovery' ( #1 ) from amr/rogged:recover-health into main
...
Reviewed-on: NotAShelf/rogged#1
Reviewed-by: raf <raf@notashelf.dev>
2026-03-20 19:52:19 +00:00
5e3ba209e0
dev: added step_count and health recovery
...
Every 15 steps the player will regain 1 HP,
unless they are at max HP. Also added commented
code for later hunger if this is to be implemented.
Played around with step # and 15 seems okay until
hunger is implemented
2026-03-20 11:59:59 -04:00
cf41ea8dcf
docs: readme?
...
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ib849df68d2d9778ec865855cf44dc9116a6a6964
2026-03-19 17:01:55 +03:00
b381e2efbd
initial commit
...
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ie3b66d17f6f660c9b9a719210bd86f9f6a6a6964
2026-03-19 17:01:54 +03:00