igorlira / dirplayer-rs

A web-compatible Shockwave Player emulator written in Rust
GNU General Public License v3.0
50 stars 10 forks source link

load behaviors from score #35

Closed matthewdean closed 2 months ago

matthewdean commented 2 months ago

A few comments:

matthewdean commented 2 months ago

From @igorlira on a previous version of this pull request:

I've noticed that we're only loading sprite data for the first frame (according to the log), plus the sprites seem to be loading into the wrong channel in dirplayer, I wonder if that has anything to do with it

Refactored sprite initialization so it happens every frame. Also am now adjusting the frame index as deserialized from the score to make it a correct channel number.

Have a number of other smaller changes sprinkled into this branch - mostly implementing unimplemented functions - if necessary can recreate them on other branches and submit them as separate pull requests.