Commit graph

49 commits

Author SHA1 Message Date
Tyler Marques
ef3e3a79fe
WIP: Mostly working version that uses the eventqueue
We've mostly got this working. Events get executed in the array of
events. We don't use setTimeout anymore thankfully. I'm not in love with
this system, it still isn't straight forward about what events happen
where, but I do at least now have an ability to better control the flow.
2025-06-16 09:39:30 -07:00
Tyler Marques
a929bf5ee6
WIP: Majority converted to event queue, continuing to work on others.
The bottom newsbar still needs conversion, as do numerous other pieces,
but we're working our way there. Attempting adding some tests with
Claude, but they aren't functioning yet, making them effectively
useless. Continuing to iterate.
2025-06-16 09:39:30 -07:00
Tyler Marques
2b52a9cbf9
WIP: An attempt at a completly event queue driven game.
This is a lot of Claude having at the code base, there is no human
review here yet. That is to come.
2025-06-16 09:39:30 -07:00
Tyler Marques
d454c68044
Cleanup of some lingering code
There is logic littered all over the place. We don't have some central
way of determining order for operations and it's driving me insane. This
needs a refactoring so we have a central way to control the order of
operations here.
2025-06-16 09:39:29 -07:00
Tyler Marques
b9a88e1c7d
Endgame correctly moves on
I believe this is a working version where we move to the next game after
a delay in the endgame modal. I still need to write tests for all of
this.
2025-06-16 09:39:29 -07:00
Tyler Marques
6f9c050741
WIP: Working on fixing moving from game to game 2025-06-16 09:39:29 -07:00
Tyler Marques
fd00131af2
FIX: SC History now works and correctly updates on phase move
The SVG paths weren't getting added to the chart. Should be fixed and
does work in later phases.
2025-06-16 09:39:29 -07:00
Tyler Marques
b8a8f5a6f2
FIX: Map jump bug, leaderboard misname
Reintroducing the fix for the bug in tween.js (issue 677) that causes
the map to jump at the end of the tween.

Leaderboard name was used twice in the code base, once for the modal at
the beginning of games, and also for the rotating display in the bottom
left. I've removed the modal at the beggining of the game as its data is
stale and not updated yet. I've renamed the bottom left to
'rotatingDisplay' and the bottom right to 'leaderboard'.
2025-06-16 09:39:29 -07:00
Tyler Marques
d52753569b
Another fix for the turns getting stuck 2025-06-16 09:39:28 -07:00
Alx-Ai
30849a36e4 closest so far! 2025-06-05 07:42:20 +00:00
Alx-Ai
51e6b4d21b fixed sounds! 2025-06-05 04:58:41 +00:00
Tyler Marques
061a048dc6
Removing the duplicated banner add call
Signed-off-by: Tyler Marques <me@tylermarques.com>
2025-06-04 15:24:48 -07:00
Tyler Marques
334950d674
FIX: Some phase logic was mucked in chatwindows
This created some very weird behaviour where it got hung up on certain
phases. Removed that logic, as well as extraneous file
relationshipPopup.ts
2025-06-04 16:49:33 -04:00
Tyler Marques
7fa5672877
FIX: Promises not rejecting properly causing game to not move
Updated some of the start game functionality to properly reject the
promises so we can catch them later and update them. Updated tsNoCheck
so that we can build without it screaming about type errors
2025-06-04 10:32:54 -07:00
Tyler Marques
ac8c511334
Fixing game movement.
The git gods appear to have swallowed the code I previously wrote for
loadNextGame. Here is a fix for that. The games load in order, from 0 =>
infinity (more likely max of int).
2025-06-04 09:35:37 -07:00
Tyler Marques
1a78cfdb5c
Fixing the loading of the moments and game zod schema
Removed the old format. Only using the new format now
2025-06-03 11:42:38 -07:00
Tyler Marques
cbe6c5f8d0
Added some more stuff
Signed-off-by: Tyler Marques <me@tylermarques.com>
2025-06-03 10:15:09 -07:00
Tyler Marques
e81f41fc57
Adding an 'instant mode' toggle, which can be used during testing when we just want to make sure games play through
Signed-off-by: Tyler Marques <me@tylermarques.com>
2025-06-03 10:14:07 -07:00
AlxAI
9b24abef53 webhooks 2025-06-02 20:33:36 -04:00
Tyler Marques
aa8ccf123d
Tool to show random moment in the game and skip to that turn.
Useful for testing the moment display, as well as comparing the moment
to thestate of the game
2025-05-30 11:33:17 -07:00
Tyler Marques
16f4384c5a
Updating font sizes to be more readable. 2025-05-30 11:33:17 -07:00
Tyler Marques
ecf8e1db06
Another pass at basic moments
Adding diary, name of powers, name of moment type, and some supporting
thoughts.

Added a debug menu item to disable or enable the eleven labs speech.
Useful for removing it when debugging
2025-05-30 11:33:16 -07:00
Tyler Marques
e1309c4012
Rudimentary moments working, instant chat debug tool
The moments are now triggered correctly and have the phases happen as
expected.
Also added an instant chat tool that skips the playing out of all the
messages and instead lets us quickly move through a game
2025-05-30 11:33:16 -07:00
Tyler Marques
8a3b6273cc
WIP: Moment display at the end of the turn only 2025-05-30 11:33:16 -07:00
Tyler Marques
b90df44aee
Implementing a debug menu item for moments
Lets you see what moment is meant to come up next.
2025-05-30 11:33:16 -07:00
Tyler Marques
9b514e8c13
Some file typing fixes. 2025-05-30 11:33:14 -07:00
Tyler Marques
cebfa8e980
Removing the relationship popup - currently not used. 2025-05-28 10:38:17 -07:00
Tyler Marques
cad1cb0464
Fixing bug where province colors didn't reset on game change.
The province colors were not properly being iterated through, needed to
do all of them on game change.
2025-05-28 10:38:16 -07:00
Tyler Marques
3642e391bc
Updating phase state control to allow for reinit of units at any phase.
I wanted to be able to cause the turns to either progress, or to set the
units in their specific spots. This way if I skip ahead a bunch of turns
for one reason or another, I don't have to worry about the units on the
  board being all messed up.
2025-05-28 10:38:16 -07:00
Tyler Marques
9314a411f9
WIP: Starting the ingestion of moments.json file 2025-05-28 10:38:16 -07:00
Tyler Marques
981dfef6a0
WIP: Continuing to iterate 2025-05-28 10:38:16 -07:00
Tyler Marques
d250e38359
WIP: Adding a larger relationship view, that shows all powers 2025-05-28 10:38:15 -07:00
Tyler Marques
302e93de9d
Updating Elevenlabs to speak fully when not in debug 2025-05-15 11:34:02 -04:00
AlxAI
fa52f4f841 adding the rotating display but bugs still with the game loop 2025-05-06 20:25:40 -04:00
Tyler Marques
ae8ff4d455
Added a smoother camera pan animation during game play.
The tween animation uses the tweening library to smoothly move the
camera across the board. Also added a smoothing for any large jumps in
the position of the camera.
2025-04-15 13:04:43 -04:00
Tyler Marques
ee9d0afea0
Sometimes createAnimations was called twice per phase
I'm not certain how this will affect speaking, as I don't have a working
speech example. That is to test next.
2025-04-15 12:04:12 -04:00
Tyler Marques
ff8249709f
Missing SCs, units with bad destination data
There were a number of tiles that didn't have SCs, resulting in some of
the provinces appearing to have more units than SCs. This was an issue
with the map data and is now fixed.

When setting the unit destination, we were setting it when creating the
animation, meaning that when we went to create the next animation we
would find the unit we already made an animation for.
2025-04-15 12:04:12 -04:00
Tyler Marques
cae33dd5ba
Retreats now work as expected 2025-03-26 17:05:30 -04:00
AlxAI
11071889f5
Merge branch 'main' into feature/better-animations 2025-03-26 07:09:47 -07:00
Tyler Marques
e979c065bc
WIP: Adding some animations, as well as tween'd camera movement
The tween'd movement is non-blocking and therefor stutters less. Only
issue is it doesn't go to the correct path yet.
2025-03-25 16:56:42 -04:00
Tyler Marques
12983d6164
Fixing the spawning of Supply centers
They were removed by accident, adding them back in.
2025-03-25 16:55:35 -04:00
Tyler Marques
2533a7b422
Working animations, correctly taking bounces into account.
There is still an issue with some orders not having matching units.
Ongoing issue with managing state in the game.
2025-03-25 16:55:35 -04:00
Tyler Marques
c5a9b91616
Fixing the spawning of Supply centers
They were removed by accident, adding them back in.
2025-03-20 14:09:25 -04:00
Tyler Marques
d15021b7df
Working animations, correctly taking bounces into account.
There is still an issue with some orders not having matching units.
Ongoing issue with managing state in the game.
2025-03-20 11:31:28 -04:00
AlxAI
f00a037aed fixed logging and elevan labs! 2025-03-17 14:49:40 -07:00
AlxAI
ee75a2a4ba fixed bugs and streamlined between turns 2025-03-15 19:05:39 -07:00
AlxAI
8d9223de74 First pass fixing post typescript port 2025-03-15 18:21:18 -07:00
Tyler Marques
a417d9510a
WIP Animations now work, the spot they go to is just wrong lol 2025-03-14 09:46:21 -04:00
Tyler Marques
ae2db39729
WIP: Moving most globals into gamestate
The gamestate object is now where most of the "state" of both the map
and the board live. The units load, just working on loading the colors
of the map ownership again.
2025-03-13 11:33:30 -04:00