Skip to content

Make-projectiles-use-angular-momentum#99

Merged
Tim2othy merged 18 commits into
mainfrom
make-projectiles-use-angular-momentum
May 8, 2025
Merged

Make-projectiles-use-angular-momentum#99
Tim2othy merged 18 commits into
mainfrom
make-projectiles-use-angular-momentum

Conversation

@Tim2othy
Copy link
Copy Markdown
Owner

@Tim2othy Tim2othy commented May 8, 2025

make projctiles also use angular momentum.

Created new class Mover that inherits from Disk. And Bullet and Ship inherit from there.
It has methods calculate_rotation and get_faced_direction and step where the thrusters are applied. This is done so we don't have lots of code being doubled.

Also created Projectile AI to do some things. and have BasicAI be the parent of ProjectileAI and EnemyAI. But at the momen't this isn't saving us any code.

But maybe later we can find a way to merge the 2 ais more, but at the moment there is only a little code being doubled, not that much.

@Tim2othy Tim2othy marked this pull request as ready for review May 8, 2025 19:24
@Tim2othy Tim2othy merged commit f0d41b5 into main May 8, 2025
@Tim2othy Tim2othy deleted the make-projectiles-use-angular-momentum branch May 8, 2025 19:25
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