mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-08 23:07:33 +07:00
T
This commit is contained in:
@ -22,7 +22,6 @@ public class MenuRenderer implements Disposable{
|
|||||||
private Matrix3 mat = new Matrix3();
|
private Matrix3 mat = new Matrix3();
|
||||||
private FrameBuffer shadows;
|
private FrameBuffer shadows;
|
||||||
private CacheBatch batch;
|
private CacheBatch batch;
|
||||||
private Texture texture = new Texture("sprites/backgrounds/background-1.png");
|
|
||||||
|
|
||||||
public MenuRenderer(){
|
public MenuRenderer(){
|
||||||
Time.mark();
|
Time.mark();
|
||||||
@ -44,11 +43,11 @@ public class MenuRenderer implements Disposable{
|
|||||||
Block ore = Blocks.air;
|
Block ore = Blocks.air;
|
||||||
Block wall = Blocks.air;
|
Block wall = Blocks.air;
|
||||||
|
|
||||||
if(s1.octaveNoise2D(3, 0.5, 1/10.0, x, y) > 0.5){
|
if(s1.octaveNoise2D(3, 0.5, 1/20.0, x, y) > 0.5){
|
||||||
wall = Blocks.shaleRocks;
|
wall = Blocks.shaleRocks;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(s3.octaveNoise2D(3, 0.5, 1/10.0, x, y) > 0.5){
|
if(s3.octaveNoise2D(3, 0.5, 1/20.0, x, y) > 0.5){
|
||||||
floor = Blocks.stone;
|
floor = Blocks.stone;
|
||||||
if(wall != Blocks.air){
|
if(wall != Blocks.air){
|
||||||
wall = Blocks.rocks;
|
wall = Blocks.rocks;
|
||||||
@ -59,7 +58,7 @@ public class MenuRenderer implements Disposable{
|
|||||||
ore = Blocks.oreCopper;
|
ore = Blocks.oreCopper;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(s2.octaveNoise2D(3, 0.3, 1/15.0, x, y+999999) > 0.7){
|
if(s2.octaveNoise2D(2, 0.2, 1/15.0, x, y+99999) > 0.7){
|
||||||
ore = Blocks.oreLead;
|
ore = Blocks.oreLead;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -131,11 +130,6 @@ public class MenuRenderer implements Disposable{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void render(){
|
public void render(){
|
||||||
Draw.color();
|
|
||||||
float scale = 1f;
|
|
||||||
Draw.rect(Draw.wrap(texture), Core.graphics.getWidth()/2f, Core.graphics.getHeight()/2f, 2048 * scale, 2048 * scale);
|
|
||||||
|
|
||||||
if(false){
|
|
||||||
float scaling = 4f;
|
float scaling = 4f;
|
||||||
camera.position.set(width * tilesize / 2f, height * tilesize / 2f);
|
camera.position.set(width * tilesize / 2f, height * tilesize / 2f);
|
||||||
camera.resize(Core.graphics.getWidth() / scaling,
|
camera.resize(Core.graphics.getWidth() / scaling,
|
||||||
@ -161,7 +155,6 @@ public class MenuRenderer implements Disposable{
|
|||||||
Fill.crect(0, 0, Core.graphics.getWidth(), Core.graphics.getHeight());
|
Fill.crect(0, 0, Core.graphics.getWidth(), Core.graphics.getHeight());
|
||||||
Draw.color();
|
Draw.color();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void dispose(){
|
public void dispose(){
|
||||||
|
@ -251,7 +251,6 @@ public abstract class SaveVersion extends SaveFileReader{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void readContentHeader(DataInput stream) throws IOException{
|
public void readContentHeader(DataInput stream) throws IOException{
|
||||||
|
|
||||||
byte mapped = stream.readByte();
|
byte mapped = stream.readByte();
|
||||||
|
|
||||||
MappableContent[][] map = new MappableContent[ContentType.values().length][0];
|
MappableContent[][] map = new MappableContent[ContentType.values().length][0];
|
||||||
|
@ -14,7 +14,7 @@ public class DesktopLauncher{
|
|||||||
config.setTitle("Mindustry");
|
config.setTitle("Mindustry");
|
||||||
config.setMaximized(true);
|
config.setMaximized(true);
|
||||||
config.setBackBufferConfig(8, 8, 8, 8, 0, 0, 0);
|
config.setBackBufferConfig(8, 8, 8, 8, 0, 0, 0);
|
||||||
config.setWindowedMode(960, 540);
|
config.setWindowedMode(900, 600);
|
||||||
config.setWindowIcon("sprites/icon.png");
|
config.setWindowIcon("sprites/icon.png");
|
||||||
|
|
||||||
Platform.instance = new DesktopPlatform(arg);
|
Platform.instance = new DesktopPlatform(arg);
|
||||||
|
Reference in New Issue
Block a user