Integrating field rendering with game

This commit is contained in:
t-moe
2016-05-27 12:02:20 +02:00
parent 788badc48e
commit f7c271b89e
3 changed files with 10 additions and 13 deletions

View File

@@ -47,7 +47,7 @@ public class Game {
}
public int[][] getField(){
return null;
return field;
}
@@ -115,10 +115,11 @@ public class Game {
field[x][y] = nextBlocks.remove(0); // fill with the first element of nextBlocks
}
// add n new colors to nextBlocks according to the level number.
for(int i = 0; i < (level * 3); i++){
nextBlocks.add(rand.nextInt(numberOfColors));
}
}
// add n new colors to nextBlocks according to the level number.
for(int i = 0; i < (level * 3); i++){
nextBlocks.add(rand.nextInt(numberOfColors));
}
}
}