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

Bullet to hard to hit the opponent #9

Open
EGalahad opened this issue Dec 18, 2023 · 0 comments
Open

Bullet to hard to hit the opponent #9

EGalahad opened this issue Dec 18, 2023 · 0 comments

Comments

@EGalahad
Copy link
Owner

Now the bullet speed and angle is predefined and fixed, we can only hit the opponent in a fixed distance.

We can implement a range attack in bullet.update. When it hit some object, create three balls of radius r, 2r, 4r, respctively. and check collision with tanks, for different range apply different level of attack.

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

No branches or pull requests

1 participant