Commit graph

136 commits

Author SHA1 Message Date
Llywelwyn
dc1cb0562f cleans up raws/mod.rs with trait impls for json parsing 2023-07-30 09:27:47 +01:00
Llywelwyn
875e6bfee7 mobs have a chance to drop held items on death 2023-07-30 08:57:31 +01:00
Llywelwyn
3e9f4f6fab added xp value for mobs with MULTIATTACK flag 2023-07-30 05:40:17 +01:00
Llywelwyn
a17a2c8f11 combat system 2nd pass - multiattacks for natural attackers 2023-07-30 05:30:01 +01:00
Llywelwyn
42113ad6a4 building and theming the forest 2023-07-30 04:17:20 +01:00
Llywelwyn
3e9ebaa002 gitignore, spring cleaning 2023-07-30 01:05:44 +01:00
Llywelwyn
e937994439 tiny visual tweaks - deepwater glyph and magic missile particle 2023-07-29 20:30:50 +01:00
Llywelwyn
b4c80b919e delayed particles 2023-07-29 20:29:29 +01:00
Llywelwyn
9ed37d31b5 Fixes serialization order (fields were mismatched in de- and serialize)
fixes #7
2023-07-29 17:28:32 +01:00
Llywelwyn
6d6b84ae6a town tweaks 2023-07-29 08:43:40 +01:00
Llywelwyn
3dab5202f8 levels, and ui changes 2023-07-29 05:56:52 +01:00
Llywelwyn
be2c8a35a5 title image, ui tweaks 2023-07-29 02:21:36 +01:00
Llywelwyn
2d4758ced1 seen entities on ui 2023-07-29 00:12:03 +01:00
Llywelwyn
a3ffb7d251 logs now print char-by-char, and have "perfect" wrapping
wraps will happen mid-word, but this is is intentional. hard wrapping doesn't look very good in my opinion

this has deprecated descending message logs for now
2023-07-28 22:25:25 +01:00
Llywelwyn
650afaf821 fixes message log wrapping - sort of
it's an improvement - messages will wrap if the added fragment is longer than the maximum width, but it still causes issues if an *individual* fragment is longer than the width. the proper solution here, i think, is to get rid of the whole fragment system and just log words and newlines, and not have to bother with any of this.
2023-07-28 21:06:08 +01:00
Llywelwyn
1e25d062db ranged targeting fixes (set_bg doesn't work with fancy console)
currently not using fancy features for anything, so just went back to the simple console
2023-07-28 17:58:32 +01:00
Llywelwyn
6e6d364aa5 fixed some attributes double-dipping, and added COMBAT_LOGGING 2023-07-28 17:12:02 +01:00
Llywelwyn
c2759e9e8e continuing with the overhaul, allowed entities to wear stuff 2023-07-28 06:57:14 +01:00
Llywelwyn
c169a1eae6 combat system overhaul - d20/hack-like 2023-07-28 06:29:59 +01:00
Llywelwyn
32044dbb6a removes unused resources, and embedded font fix 2023-07-28 01:51:14 +01:00
Llywelwyn
d2648c4560 visual overhaul 2023-07-28 01:06:42 +01:00
Llywelwyn
b940142f16 the town 2023-07-27 21:15:20 +01:00
Llywelwyn
5f091bc2ab Merge branch 'depths_to_ids' 2023-07-27 17:59:54 +01:00
Llywelwyn
1239597422 decouples depth from difficulty, and renames depth to ID
for future impl of branches
2023-07-27 17:59:46 +01:00
Llywelwyn
8b2acab576 canines 2023-07-26 02:46:22 +01:00
Llywelwyn
a54e604681 town tweaks, themes 2023-07-26 02:30:25 +01:00
Llywelwyn
f2fabafe57 starting in town 2023-07-26 01:35:02 +01:00
Llywelwyn
34e7ec40ee Merge remote-tracking branch 'origin/master' 2023-07-25 17:08:21 +01:00
Llywelwyn
1b4d0c2c4b tweaks and wasm build for w3 2023-07-25 17:08:11 +01:00
Llywelwyn
9973693766
formatting 2023-07-25 17:02:36 +01:00
Llywelwyn
a7ed02ce2d
Update README - week 3.md 2023-07-25 16:56:18 +01:00
Llywelwyn
1c956cdf58 sanity checks 2023-07-25 04:03:01 +01:00
Llywelwyn
2e23601fc8 wasm build 2023-07-25 03:51:01 +01:00
Llywelwyn
f53b767376 overhaul: data-driven architecture 2023-07-25 03:50:50 +01:00
Llywelwyn
062d36f640 Merge remote-tracking branch 'origin/master' 2023-07-24 23:01:51 +01:00
Llywelwyn
cdf16aca9d particles, and centred camera 2023-07-24 23:01:34 +01:00
Llywelwyn
93e19ed562
week 3 images 2023-07-24 19:40:20 +01:00
Llywelwyn
e9cace85c6 week 3 changes - unf., needs formatting 2023-07-24 19:24:46 +01:00
Llywelwyn
b80c3ac9d1 FillEdges builder, and a welcome message 2023-07-24 19:16:20 +01:00
Llywelwyn
0fe866c048 section 3 - generating maps wasm build 2023-07-24 18:54:54 +01:00
Llywelwyn
727400e0ee Merge branch 'decouple_camera' 2023-07-24 18:53:58 +01:00
Llywelwyn
7f0465da73 finishes decoupling map from camera 2023-07-24 18:53:51 +01:00
Llywelwyn
2ecfd25d95 decoupled camera from map, wands of digging, wand use tracking 2023-07-24 18:14:38 +01:00
Llywelwyn
7aa440612e all entities in range of opened/closed/broken obj now get dirty viewshed 2023-07-24 15:17:41 +01:00
Llywelwyn
f9057da71b event logging/game over message 2023-07-24 05:31:30 +01:00
Llywelwyn
1c435f8d60 tweaks 2023-07-24 04:32:56 +01:00
Llywelwyn
0472c8a8bf help screen [?], and [f]orcing doors open 2023-07-24 03:13:23 +01:00
Llywelwyn
3e2eee9709 ActionWithDirection runstate
- setting this runstate with a function as arg will give a direction prompt, and then call the function with the selected direction as the argument. i.e. for opening a door or throwing an item in a specific direction
2023-07-24 00:58:40 +01:00
Llywelwyn
1f6c04a526 atomises item table into sub-tables, adds table rolls to vaults 2023-07-23 22:41:24 +01:00
Llywelwyn
72bd7558fa doors render when they've been revealed 2023-07-23 21:49:52 +01:00