I have a shooting game made in Java. It's based on time, i.e you have to shoot the objects before the time runs out. Everything is working fine, except that I'm trying to implement an algorithm to generate levels. I implemented one that increases the number of game objects and increase their speed, but I don't know how to give the player an appropriate time based on these factors to provide an appropriate challenge for the player.
Part of the increase in challenge will come from reducing the reaction and aiming/firing time that you allow the player to take.
What I would suggest starting with is assuming a large amount of time per object. Let's say 5 seconds or something like that. You probably also want some initial buffer time.
So if there are 20 objects in the scene, and you start with a 5 second per-object allocation of time, and a 5 second initial buffer, your level ends up being (20 * 5) + 5 = 105 seconds.
To increase the challenge, reduce the amount of time. Since the game will get significantly harder you probably want to slow down the reduction in time over time instead of using something like a straight linear function. Something like amount of time per object = f(x) = 5 - ln(x) would be a place to start.
You can also start staggering your levels. Say, a set of 5 levels uses the same reaction time, but increases the speed. Then the next block resets the speed but uses a lesser reaction time.
I think the main thing is to make your own algorithm and tweak it. Consider first a high-level; how do you want the speed, number of objects, etc. to grow? Is it a linear curve? Exponential curve? etc.
Start with something basic like that (eg.
lets say it takes
hope it helps...