Re-structured Renderer, bugfixes, implemented EnemySpawn system
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user