Add render loop #481

Open
opened 2026-03-31 20:00:48 +00:00 by LunarTides · 0 comments
LunarTides commented 2026-03-31 20:00:48 +00:00 (Migrated from github.com)

Another big one. Allow things to happen while the player is choosing an option. The screen should refresh to show updates.

This should allow a timer that updates in realtime, and a card alternating its attack and health every second, for example.

I don't know what the exact implementation details are going to be, but it might be possible without huge restructurings. Especially if only using @inquirer/core.

This is breaking since this will cause ticks to happen tens of times per second instead of one every ~10 seconds, which is something people need to consider when making tick hooks.

Another big one. Allow things to happen while the player is choosing an option. The screen should refresh to show updates. This should allow a timer that updates in realtime, and a card alternating its attack and health every second, for example. I don't know what the exact implementation details are going to be, but it *might* be possible without huge restructurings. Especially if only using `@inquirer/core`. This is breaking since this will cause ticks to happen tens of times per second instead of one every ~10 seconds, which is something people need to consider when making tick hooks.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
LunarTides/Hearthstone.js#481
No description provided.