Skip to content

Conversation

@rnyoakum
Copy link
Contributor

Moved spaceport animation code into its own file separate from the port code, breaking it into readable functions.

Ryan Yoakum added 4 commits July 2, 2023 15:59
Fixes off-by-one data errors in the spaceport animations file. Animation
cel images have a directory entry, specifying their size (in byes) and
location (offset) in the file, as well as a header with width & height
prior the pixel data. The width value was frequently off by one. This
corrects the file, and removes the fix which had been added to the code.
Break the massive SpotActivity function into component functions. Rename
variables so their purpose is clear.
Replace hardcoded indices used in spaceport animations with an
enumeration. Also moved animation selection code to separate functions
for clarity.
@rnyoakum rnyoakum merged commit f9e6515 into raceintospace:master Jul 18, 2023
@rnyoakum rnyoakum mentioned this pull request Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant