Generation tweaks
This commit is contained in:
@@ -19,13 +19,18 @@ public class Cliff extends Block{
|
||||
@Override
|
||||
public void draw(Tile tile){
|
||||
int r = tile.rotation();
|
||||
for(int i = 0; i < 4; i++){
|
||||
for(int i = 0; i < 8; i++){
|
||||
if((r & (1 << i)) != 0){
|
||||
Draw.color(Tmp.c1.set(tile.floor().color).mul(1.3f + (i >= 2 ? -0.4f : 0.3f)));
|
||||
Draw.rect(region, tile.worldx(), tile.worldy(), i * 90f);
|
||||
Draw.color(Tmp.c1.set(tile.floor().color).mul(1.3f + (i >= 4 ? -0.4f : 0.3f)));
|
||||
Draw.rect(region, tile.worldx(), tile.worldy(), 11f, 11f, i * 45f);
|
||||
}
|
||||
}
|
||||
|
||||
Draw.color();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int minimapColor(Tile tile){
|
||||
return Tmp.c1.set(tile.floor().color).mul(1.2f).rgba();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user