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

add applyScale system #52

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

add applyScale system #52

wants to merge 3 commits into from

Conversation

AlexBezuska
Copy link
Member

Example:
any entity with:

"scale": {
  "current": 0.5
}

will be scaled to 50% of it's original size.

The scale only happens if the scale has changed since last frame, and is the "current" scale persent is below the "max".

To set a max:

"scale": {
  "current": 0.5,
  "max": 1
}

This system creates or changes a "last" property each time it successfully scales an entity, this prevents scaling every frame by comparing the "last" with "current" and only scaling if they differ.

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