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

Limit bullet count #10

Open
gdamore opened this issue Oct 19, 2015 · 0 comments
Open

Limit bullet count #10

gdamore opened this issue Oct 19, 2015 · 0 comments

Comments

@gdamore
Copy link
Owner

gdamore commented Oct 19, 2015

Right now players have unlimited shots. That makes the game kind of too easy. We need to have some kind of limiter on this. That also means that we need to have a way to register a "watch" on the bullet objects to keep count of them. Alternatively we could just keep track of the last X fired shots, and limit to not more than X bullets per time interval.

The former approach would allow us to create more bullets when they are destroyed without waiting. The latter would not -- our fire rate would be fixed.

A third approach and simpler still, would be to inject a minimum delay between shots. Sort of a reload time. This is probably the most accurate for simulation, but I'm not sure it gives the best play results.

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