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

update DrawParticles #10407

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

update DrawParticles #10407

wants to merge 2 commits into from

Conversation

Twcash
Copy link

@Twcash Twcash commented Jan 10, 2025

If your pull request is not translation or serverlist-related, read the list of requirements below and check each box:

  • I have read the contribution guidelines.
  • I have ensured that my code compiles, if applicable.
  • I have ensured that any new features in this PR function correctly in-game, if applicable.

Just adds the ability for x and y offsets for the particles and the ability to change the amount of sides.
The video below shows in-game usage. Would be nice for mods.

20250110-1244-57.3701292.mp4
20250110-1306-33.3335699.mp4

@Twcash Twcash changed the title update particles update DrawParticles Jan 10, 2025
build.x + Angles.trnsx(angle, len),
build.y + Angles.trnsy(angle, len),
particleSize * particleSizeInterp.apply(fin) * build.warmup()
Fill.poly(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change. A 12-point polygon is significantly more rendering overhead than a circle sprite and will have visual differences.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hide it behind a Boolean so that Circle is the default?

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.

2 participants