56 Commits

Author SHA1 Message Date
1986228670 Refactor spell casts to use task utilities and simplify callbacks
Add task.chain utility for chaining asynchronous tasks
2026-02-01 03:56:18 +03:00
59cc0fba0b rewrite sprite:animate, residentsleeper:sleep, attack:cast to use
callback trees
2026-01-30 00:32:05 +03:00
93a4961419 high-order functions my beloved 2026-01-25 07:05:45 +03:00
3f694ccec9 attempt to save our souls (callback hell my beloved)
Co-authored-by: Ivan Yuriev <ivanyr44@gmail.com>
2026-01-24 01:46:05 +03:00
d48f1af1af micro refactoring 2026-01-23 15:57:10 +03:00
9489cd0488 we can move under another (closest!!!!!!!!!) character
cool!!!!
2026-01-23 15:56:36 +03:00
26633db3c3 implement LightBehavior:animateColor
(to show that animations do work, actually)
2026-01-18 01:03:35 +03:00
ab37f6816d add demo dynamic light on dev_mana cast 2026-01-17 18:26:13 +03:00
e088fddf48 implement character:die() 2026-01-17 17:43:29 +03:00
7ff7e47a90 add PositionedBehavior 2026-01-17 14:49:08 +03:00
4aa470f443 allow window resizing TODO: get rid of fullscreen rendering 2026-01-14 21:35:23 +03:00
e6754048f6 add weather to level 2026-01-14 21:00:17 +03:00
82fdd0d609 light source test 2026-01-08 12:45:59 +03:00
cd5c844c52 Fix variable naming from r to phi in shadow calculation function 2026-01-04 02:23:52 +03:00
03070cfff7 move shadows-related logic into its own behavior 2026-01-04 02:18:02 +03:00
767ddc459c shadows v1.5 2025-12-29 02:16:09 +03:00
24cda32e81 temporary enshittification of the rendering 2025-12-28 05:16:01 +03:00
0c1332afb3 add simple cone shadows (blurred) 2025-12-27 04:37:32 +03:00
b259aa3839 introduce basic offscreen render stack 2025-12-27 03:35:56 +03:00
a9bb7df188 fix look at the attack target 2025-11-12 03:20:21 +03:00
cd8d2768e0 fix drawing spell preview after the end of a turn 2025-11-12 02:55:49 +03:00
6b2fb08a5b Reimplement turn order management and update character initiative logic 2025-11-09 06:35:51 +03:00
8821cb4cf7 try to add initiative 2025-11-07 09:25:21 +03:00
6dd02ed2ec turn order init 2025-11-04 19:08:41 +03:00
12b6646642 shader outline experiment 2025-10-24 03:23:49 +03:00
7884b13b70 implement AnimationNode 2025-10-23 19:37:17 +03:00
78f9347b86 try to attack & behavior annotation refactor
Co-authored-by: Ivan Yuriev <ivanyr44@gmail.com>
2025-10-16 00:28:26 +03:00
0db8fc5239 refactor behavior tree def & removed dependencies from behavior logic 2025-10-13 22:48:38 +03:00
490452031b refactor some old shit 2025-10-13 00:08:34 +03:00
4b3df0ae24 fix manapool and refactor stats 2025-10-13 00:03:53 +03:00
d2caa40a0a feat: manapool (kind of bad manapool)
Co-authored-by: Ivan Yuriev <peaashmeter@users.noreply.github.com>
2025-10-12 23:41:16 +03:00
8bcae25a2e - implement selector locking when processing a spell (players gonna hate
that)
- implement spellcaster state handling
2025-10-12 03:03:02 +03:00
210faaf6a3 implement base behavior 2025-10-06 01:36:37 +03:00
95b94bb701 rename AnimatedBehavior -> SpriteBehavior 2025-10-06 01:30:17 +03:00
99d523a761 - reimplement animation as AnimatedBehavior
- remove deprecated in Character
- remove RenderBehavior
2025-09-29 04:30:55 +03:00
dd84e157bd refactor Character:addBehavior 2025-09-28 23:47:50 +03:00
9fe2276d04 remove deprecated fields related to spellcasting in Character 2025-09-28 23:39:41 +03:00
c4dfb5956d add spellcaster behavior 2025-09-28 23:34:17 +03:00
947787ff44 implement character:try 2025-09-17 13:21:50 +03:00
1b12b2c470 initial implementation of character behavior 2025-09-16 23:53:16 +03:00
86b3d8030a Update character.lua 2025-09-15 04:13:33 +03:00
38536f6d59 уменьшение связности подмодулей персонажа, часть 1:
- синтаксис для добавления модулей
- ссылка на персонажа внутри модуля
2025-09-14 20:57:20 +03:00
30f8b1c769 reactive character state implementation
- @todo: refactor character submodules
2025-09-14 01:51:18 +03:00
dd1d64506d spells framework API & walk implementation 2025-09-05 15:44:02 +03:00
bab4b006ca перемещение персонажа по нажатию на кнопку
- я официально в тильте отэкспериментов с ui, щас возьму и напишу лютейшую императивщину
2025-09-04 02:01:25 +03:00
8c1166216c fix character rotation while moving 2025-09-03 00:42:40 +03:00
7753413385 пупупу... ой, то есть pupupu...
try to fix side draw (after initial side draw)
2025-08-15 19:34:56 +03:00
541c692f82 smol animation refactor & initial side draw 2025-08-15 18:54:54 +03:00
3373e367ac fix diagonal movement 2025-08-15 07:42:59 +03:00
df22b9ea3f refactor lerp 2025-08-15 06:12:53 +03:00