Commit graph

10 commits

Author SHA1 Message Date
Elijah R 1ad9ee14fe format code with prettier 2024-07-14 15:26:05 -04:00
Lily Tsuru 61dc78ba3b msagent.js: Cache parsed ACS data
Instead of duplicating it per every instance of an Agent, since it is never mutated by an Agent, we can just cache it.
2024-07-12 19:13:53 -04:00
Elijah R 89d0092f65 add agentCreateCharacterFromUrl 2024-07-10 00:08:06 -04:00
Lily Tsuru b50091c5fc remove Agent.animationFinished()
we can just put its logic in the finish callback we give to the animation state
2024-07-09 23:57:50 -04:00
Lily Tsuru b6b069450d remove debug prints, axe testbed-only APIs 2024-07-09 23:50:16 -04:00
Elijah R 9f211ec36a half working frame rendering 2024-07-09 19:47:10 -04:00
Lily Tsuru 9eadf40d4c read images (TODO)
next is displaying them in the testbed
2024-07-04 20:41:11 -04:00
Lily Tsuru 9d88e332f5 parse animation data!
also clean up some offsetting stuff a bit, by adding a RAII-like utility that lets the code temporairly offset elsewhere.
2024-07-04 05:13:35 -04:00
Lily Tsuru 3718b508a5 split structs out into seperate typescript files (in prep for animation) 2024-07-03 21:18:40 -04:00
Lily Tsuru 2c8793a796 msagent.js: Parse character info
msagent.js can now parse the character section of a ACS file fully.

This also adds a testbed thing. Later on it will display individual frames
and animations for debugging before the full character API is ready.
For now, it just has a file input for dumping ACS files into so we can debug
reading of the data.
2024-07-03 06:00:22 -04:00