Commit graph

169 commits

Author SHA1 Message Date
Llywelwyn
0d4c0c9558 data to consts, cheatmenu 2023-09-24 23:46:27 +01:00
Llywelwyn
a2fb893f49 mapgen runstate 2023-09-24 22:20:49 +01:00
Llywelwyn
7f02a5a30f draw_bg() 2023-09-24 21:24:11 +01:00
Llywelwyn
e482b29fc6 reimpl farlook (tooltips NYI) 2023-09-24 19:16:47 +01:00
Llywelwyn
e8aa7494a4 fixing the sea of red - entity rendering for things in view 2023-09-24 16:55:47 +01:00
Llywelwyn
643ecfcf3e drawing entities, and map memory 2023-09-24 16:15:24 +01:00
Llywelwyn
d9489e7ddc camera rendering, and breaking things temporarily 2023-09-24 14:23:48 +01:00
Llywelwyn
1299524c91 reimplementing gameloop with notan's App, instead of bracket-lib BTerm 2023-09-24 00:41:02 +01:00
Llywelwyn
683ab95531 removes ctx arg from get_screen_bounds() 2023-09-24 00:01:17 +01:00
Llywelwyn
be1c7aa1c7 draw "tiles" 2023-09-23 23:33:50 +01:00
Llywelwyn
2967cddf7b init 2023-09-23 23:15:36 +01:00
Llywelwyn
670b365def refining the sprites 2023-09-23 19:35:51 +01:00
Llywelwyn
cee4d02ce2 sprites init 2023-09-23 18:02:51 +01:00
Llywelwyn
ddcfd72318 fixing up some post-merge errors 2023-09-23 10:43:32 +01:00
Llywelwyn
441b22439f Merge branch 'master' into switching_to_draw_batches 2023-09-23 10:12:26 +01:00
Llywelwyn
921fee2ecc intrinsic speed + regeneration 2023-09-21 05:06:52 +01:00
Llywelwyn
8a44c94272 adds damage types and mods (weak/resist/immune), for all damage events 2023-09-21 00:52:54 +01:00
Llywelwyn
727ca09e74 defaults placeholder player to human ancestry 2023-09-20 21:56:50 +01:00
Llywelwyn
27c1fe9a48 cleans up linter warns 2023-09-18 21:54:18 +01:00
Llywelwyn
85efe13dc5 made the switch to using bracket-lib directly, instead of rltk wrapper
this should solve the build issues; it makes using the non-crashing github build a lot easier, because it lets the explicit rltk dependency be removed.
2023-09-05 02:23:31 +01:00
Llywelwyn
a29a7f5be4 formatting 2023-09-03 22:47:59 +01:00
Llywelwyn
ae3e061ce8 back to curses -- still needs tweaking
box drawing glyphs are misaligned, etc
2023-09-03 08:42:10 +01:00
Llywelwyn
ebcce3183b fixes off-by-one pixels with a small gutter
not sure why this fixes it - but it does. needs some testing.
2023-09-03 06:56:05 +01:00
Llywelwyn
1bea2c0026 testing resizing
strange artifacts with this size of font. seems to be an OpenGL issue (on specific hardware?) - issue is present on two different devices, with different screen resolutions, but disappears when running the WASM build. might be easiest to return to something which doesn't have this issue.
2023-09-03 06:40:27 +01:00
Llywelwyn
4e0ed95a22 infinite font variations for testing - huge wip 2023-09-03 05:10:17 +01:00
Llywelwyn
2a3c59ad33 first steps - extreme wip
1. need to finish curses12x24 first of all
2. bind everything to the viewport, and make scalable
2023-09-03 01:45:18 +01:00
Llywelwyn
3464e9447c imports to lib.rs, creating unit tests 2023-08-31 01:20:21 +01:00
Llywelwyn
568df55795 restricts overmap actions (item use/drop/kick/open/close) 2023-08-30 23:54:28 +01:00
Llywelwyn
a038a3f586 chance to log dungeon features per clock turn 2023-08-30 12:08:03 +01:00
Llywelwyn
64caf0dc1a less blocking - targets will try to path to any space around their tar 2023-08-30 09:15:45 +01:00
Llywelwyn
454c2aab63 player now blockstile 2023-08-30 06:07:40 +01:00
Llywelwyn
8eb98b5baa player turn awaits empty particle queue 2023-08-30 05:58:08 +01:00
Llywelwyn
b5c4cb1fb5 ticker awaits an empty particle queue 2023-08-30 05:57:03 +01:00
Llywelwyn
9fb791039f map shortnames/identifiers 2023-08-30 04:51:32 +01:00
Llywelwyn
d6b9be628a targeting -> kb control 2023-08-30 03:53:14 +01:00
Llywelwyn
7da00ed2b1 x to farlook, now playable with 0 mouse input 2023-08-30 03:13:46 +01:00
Llywelwyn
038e616500 cleans up chatlog colours - renderables for non-item, beatitude for item 2023-08-27 22:26:58 +01:00
Llywelwyn
537e19c4e7 tooltips for overmap tiles, and distinct fg-bg offsets 2023-08-27 18:04:53 +01:00
Llywelwyn
8e3ed5cead huge refactor of overmap-local map travel 2023-08-27 16:21:15 +01:00
Llywelwyn
e1eae7efaf overmap travel - needs refactoring urgently, but it works for now 2023-08-27 03:00:48 +01:00
Llywelwyn
38eed3e483 refactor, and overmap (heavy wip) 2023-08-27 00:06:29 +01:00
Llywelwyn
746de971f0 overmap, refactor offsets 2023-08-26 22:46:04 +01:00
Llywelwyn
738484436b significant events in morgue file, better event logging 2023-08-25 22:43:50 +01:00
Llywelwyn
3023a33cc5 i/o stuff: skeleton framework for morgue files, and a config.toml file 2023-08-24 22:34:05 +01:00
Llywelwyn
ff344ccee4 returns the option for scanlines, cleans up config 2023-08-23 21:14:07 +01:00
Llywelwyn
e62a081103 increases systems robustness
- most systems run twice per tick, and the effects queue is processes on sub-tick intervals (after any relevant systems).

1. PLAYER TURN ->
i. Map/viewsheds are refreshed, effects queue is run.
ii. RunState takes player input.
iii. Player input is resolved/effects queue is run.
2. AI TURNS ->
i. Map/viewsheds refreshed.
ii. AI decision-making.
iii. AI decisions resolved/effects queue is run.
3. OTHER ->
i. If the start of a new turn, hunger clock is run.
ii. particles are created/deleted every frame.
2023-08-23 18:58:11 +01:00
Llywelwyn
02a4f33d11 more framework for spells 2023-08-23 18:17:04 +01:00
Llywelwyn
15e8ae13d0 char creation to config 2023-08-23 01:57:35 +01:00
Llywelwyn
424bf43ed5 config stuff to config folder 2023-08-23 01:31:02 +01:00
Llywelwyn
c2c7e0bd52 sorry - swapping from rustfmt to prettier-rust 2023-08-23 01:22:09 +01:00