Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scale image before loading #27

Merged
merged 1 commit into from
Aug 22, 2023
Merged

Scale image before loading #27

merged 1 commit into from
Aug 22, 2023

Conversation

realhackcraft
Copy link
Owner

We must scale the images in the tileset before using them. This way, the game can run faster with animations. The previous technique scales the image everytime when loading a new frame of the animation. This can consume a lot of computational power for scenes with a lot of animating objects. Using this new technique, we can pre compute the scaled images when loading the game so that we can use them faster during gameplay.

@realhackcraft realhackcraft self-assigned this Aug 22, 2023
@realhackcraft realhackcraft added the bug Something isn't working label Aug 22, 2023
@realhackcraft realhackcraft merged commit 2403574 into production Aug 22, 2023
1 check passed
@realhackcraft realhackcraft deleted the scale-image branch August 22, 2023 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant