Various tweaks, new music tracks

This commit is contained in:
Anuken 2019-08-09 23:23:45 -04:00
parent 59e53eb672
commit 16f6b51857
21 changed files with 20 additions and 22 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Binary file not shown.

BIN
core/assets/music/game5.mp3 Normal file

Binary file not shown.

BIN
core/assets/music/game6.mp3 Normal file

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 717 B

After

Width:  |  Height:  |  Size: 716 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 676 KiB

After

Width:  |  Height:  |  Size: 676 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 256 KiB

After

Width:  |  Height:  |  Size: 256 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 278 KiB

After

Width:  |  Height:  |  Size: 278 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 462 KiB

After

Width:  |  Height:  |  Size: 462 KiB

View File

@ -153,7 +153,7 @@ public class Zones implements ContentList{
launchPeriod = 10;
zoneRequirements = ZoneRequirement.with(ruinousShores, 20);
blockRequirements = new Block[]{Blocks.coalCentrifuge, Blocks.conduit, Blocks.wave};
resources = new Item[]{Items.copper, Items.scrap, Items.lead, Items.coal, Items.titanium, Items.sand};
resources = new Item[]{Items.copper, Items.scrap, Items.lead, Items.coal, Items.titanium, Items.thorium, Items.sand};
}};
desolateRift = new Zone("desolateRift", new MapGenerator("desolateRift")){{

View File

@ -272,8 +272,6 @@ public class Control implements ApplicationListener{
Tile core = state.teams.get(defaultTeam).cores.first();
core.entity.items.clear();
state.set(State.playing);
control.saves.zoneSave();
logic.play();
state.rules.waveTimer = false;
state.rules.waveSpacing = 60f * 30;

View File

@ -3,7 +3,8 @@ package io.anuke.mindustry.ui.dialogs;
import io.anuke.arc.*;
import io.anuke.arc.collection.*;
import io.anuke.arc.files.*;
import io.anuke.arc.function.*;
import io.anuke.arc.graphics.*;
import io.anuke.arc.graphics.Texture.*;
import io.anuke.arc.input.*;
import io.anuke.arc.scene.*;
import io.anuke.arc.scene.event.*;
@ -41,6 +42,7 @@ public class SettingsMenuDialog extends SettingsDialog{
});
shown(() -> {
back();
if(!state.is(State.menu)){
wasPaused = state.is(State.paused);
state.set(State.paused);
@ -60,14 +62,9 @@ public class SettingsMenuDialog extends SettingsDialog{
menu = new Table("button");
Consumer<SettingsTable> s = table -> {
table.row();
table.addImageTextButton("$back", "icon-arrow-left", iconsize, this::back).size(240f, 60f).colspan(2).padTop(15f);
};
game = new SettingsTable(s);
graphics = new SettingsTable(s);
sound = new SettingsTable(s);
game = new SettingsTable();
graphics = new SettingsTable();
sound = new SettingsTable();
prefs = new Table();
prefs.top();
@ -104,8 +101,6 @@ public class SettingsMenuDialog extends SettingsDialog{
row();
add(buttons).fillX();
hidden(this::back);
addSettings();
}
@ -193,6 +188,7 @@ public class SettingsMenuDialog extends SettingsDialog{
}).size(220f, 60f).pad(6).left();
table.add();
table.row();
hide();
}
});
@ -251,8 +247,6 @@ public class SettingsMenuDialog extends SettingsDialog{
graphics.checkPref("lasers", true);
graphics.checkPref("pixelate", false);
//TODO is this necessary?
/*
graphics.checkPref("linear", false, b -> {
for(Texture tex : Core.atlas.getTextures()){
TextureFilter filter = b ? TextureFilter.Linear : TextureFilter.Nearest;
@ -265,7 +259,7 @@ public class SettingsMenuDialog extends SettingsDialog{
TextureFilter filter = TextureFilter.Linear;
tex.setFilter(filter, filter);
}
}*/
}
}
private void back(){
@ -276,17 +270,23 @@ public class SettingsMenuDialog extends SettingsDialog{
private void visible(int index){
prefs.clearChildren();
Table table = new Table[]{game, graphics, sound}[index];
prefs.add(table);
prefs.add(new Table[]{game, graphics, sound}[index]);
}
@Override
public void addCloseButton(){
buttons.addImageTextButton("$menu", "icon-arrow-left", 30f, this::hide).size(230f, 64f);
buttons.addImageTextButton("$back", "icon-arrow-left", 30f, () -> {
if(prefs.getChildren().first() != menu){
back();
}else{
hide();
}
}).size(230f, 64f);
keyDown(key -> {
if(key == KeyCode.ESCAPE || key == KeyCode.BACK)
if(key == KeyCode.ESCAPE || key == KeyCode.BACK){
hide();
}
});
}
}

View File

@ -249,7 +249,7 @@ public class Generators{
Image image = new Image(32, 32);
Image shadow = ImagePacker.get(item.name + (i + 1));
int offset = image.width / tilesize;
int offset = image.width / tilesize - 1;
for(int x = 0; x < image.width; x++){
for(int y = offset; y < image.height; y++){