Re-structured Renderer, bugfixes, implemented EnemySpawn system

This commit is contained in:
Anuken
2017-09-23 11:50:50 -04:00
parent 446e70c52b
commit b3ef1e2f2f
13 changed files with 192 additions and 167 deletions

View File

@@ -6,13 +6,17 @@ public class EnemySpawn{
public final Class<? extends Enemy> type;
int before = Integer.MAX_VALUE;
int after;
int spacing;
int spacing = 1;
float scaling = 9999f;
public EnemySpawn(Class<? extends Enemy> type){
this.type = type;
}
public int evaluate(int wave, int lane){
return 0;
if(wave < after || wave > before || wave % spacing != 0){
return 0;
}
return 1 * Math.max((int)((wave / spacing) / scaling), 1);
}
}