unlimited game algorithm!


I want to make a unlimited game that whatever time is going forward,the game be more difficult.

for example more enemies and faster generate.

How can i manage the generation?time and so on.


well, Time.time gives you the time since start-up, in seconds. so you could say:

function Update()
var tempTime : int = Time.time;
enemiesToSpawn : int = tempTime / 30;