Added health bars to block info / Fixed block info refresh bug

This commit is contained in:
Anuken
2019-01-22 13:45:33 -05:00
parent 72d7c1ba54
commit 0e5b95e3aa
11 changed files with 415 additions and 278 deletions

View File

@@ -69,10 +69,6 @@ public class MapGenerator extends Generator{
for(int x = 0; x < data.width(); x++){
for(int y = 0; y < data.height(); y++){
if(Mathf.chance(0.05) && tiles[x][y].floor() == Blocks.stone && tiles[x][y].block() == Blocks.air){
tiles[x][y].setBlock(Blocks.rock);
}
final double scl = 10;
final int mag = 3;
int newX = Mathf.clamp((int)(simplex.octaveNoise2D(1, 1, 1.0 / scl, x, y) * mag + x), 0, data.width()-1);
@@ -84,7 +80,7 @@ public class MapGenerator extends Generator{
}
if(enemySpawns > enemies.size){
throw new IllegalArgumentException("Enemy spawn pool greater than map spawn #.");
throw new IllegalArgumentException("Enemy spawn pool greater than map spawn number.");
}
if(enemySpawns != -1){