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

Merged
merged 4 commits into from
Feb 4, 2025
Merged

update DrawParticles #10407

merged 4 commits into from
Feb 4, 2025

Conversation

Twcash
Copy link
Contributor

@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
Contributor 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?

build.y + Angles.trnsy(angle, len),
particleSize * particleSizeInterp.apply(fin) * build.warmup()
);
if (poly) {
Copy link
Owner

Choose a reason for hiding this comment

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

Code style is wrong, see CONTRIBUTING.md. You (or your editor) inserted spaces around { and after if, which is inconsistent style.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was getting to that

@Anuken Anuken merged commit 7879ae9 into Anuken:master Feb 4, 2025
2 checks passed
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