Deployment fixes
This commit is contained in:
@@ -34,7 +34,8 @@ dependencies{
|
|||||||
natives "com.github.Anuken.Arc:natives-freetype-android:${getArcHash()}"
|
natives "com.github.Anuken.Arc:natives-freetype-android:${getArcHash()}"
|
||||||
natives "com.github.Anuken.Arc:natives-box2d-android:${getArcHash()}"
|
natives "com.github.Anuken.Arc:natives-box2d-android:${getArcHash()}"
|
||||||
|
|
||||||
if(localArc()) compileOnly fileTree(dir: '../../Arc/backends/backend-android/libs', include: ['*.jar'])
|
//android dependencies magically disappear during compilation, thanks gradle!
|
||||||
|
if(new File(projectDir.parent, '../Arc').exists()) compileOnly fileTree(dir: '../../Arc/backends/backend-android/libs', include: ['*.jar'])
|
||||||
}
|
}
|
||||||
|
|
||||||
task deploy(type: Copy){
|
task deploy(type: Copy){
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ allprojects{
|
|||||||
|
|
||||||
ext{
|
ext{
|
||||||
versionNumber = '6'
|
versionNumber = '6'
|
||||||
if(!project.hasProperty("versionModifier")) versionModifier = 'pre-alpha'
|
if(!project.hasProperty("versionModifier")) versionModifier = 'alpha'
|
||||||
if(!project.hasProperty("versionType")) versionType = 'official'
|
if(!project.hasProperty("versionType")) versionType = 'official'
|
||||||
appName = 'Mindustry'
|
appName = 'Mindustry'
|
||||||
steamworksVersion = '891ed912791e01fe9ee6237a6497e5212b85c256'
|
steamworksVersion = '891ed912791e01fe9ee6237a6497e5212b85c256'
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ gameover = Game Over
|
|||||||
gameover.pvp = The[accent] {0}[] team is victorious!
|
gameover.pvp = The[accent] {0}[] team is victorious!
|
||||||
highscore = [accent]New highscore!
|
highscore = [accent]New highscore!
|
||||||
copied = Copied.
|
copied = Copied.
|
||||||
indevpopup = [accent]v6[] is currently in [accent]alpha[].\n[lightgray]This means:[]\n- Content is missing\n - Most [scarlet]Unit AI[] does not work properly\n- Many units are unfinished\n- The campaign is completely unfinished\n- Everything you see is subject to change or removal.\n\nReport bugs or crashes on [accent]Github[].
|
indevpopup = [accent]v6[] is currently in [accent]alpha[].\n[lightgray]This means:[]\n[scarlet]- The campaign is completely unfinished[]\n- Content is missing\n - Most [scarlet]Unit AI[] does not work properly\n- Many units are unfinished\n- Everything you see is subject to change or removal.\n\nReport bugs or crashes on [accent]Github[].
|
||||||
|
|
||||||
load.sound = Sounds
|
load.sound = Sounds
|
||||||
load.map = Maps
|
load.map = Maps
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ gameover = Игра окончена
|
|||||||
gameover.pvp = [accent]{0}[] команда победила!
|
gameover.pvp = [accent]{0}[] команда победила!
|
||||||
highscore = [accent]Новый рекорд!
|
highscore = [accent]Новый рекорд!
|
||||||
copied = Скопировано.
|
copied = Скопировано.
|
||||||
indevpopup = [accent]v6[] находится на стадии [accent]pre-alpha[].\n[lightgray]Это означает следующее:[]\n- Отсутствие контента.\n- Большинство [scarlet]ИИ единиц[] не работает.\n- Множество единиц не готово.\n- Кампания не завершена.\n- Всё, что вы видите, может быть изменено или удалено.\n\nСообщайте о багах и вылетах на [accent]Github[].
|
indevpopup = [accent]v6[] находится на стадии [accent]alpha[].\n[lightgray]Это означает следующее:[]\n- Отсутствие контента.\n- Большинство [scarlet]ИИ единиц[] не работает.\n- Множество единиц не готово.\n- Кампания не завершена.\n- Всё, что вы видите, может быть изменено или удалено.\n\nСообщайте о багах и вылетах на [accent]Github[].
|
||||||
|
|
||||||
load.sound = Звуки
|
load.sound = Звуки
|
||||||
load.map = Карты
|
load.map = Карты
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ gameover = Гра завершена
|
|||||||
gameover.pvp = [accent]{0}[] команда перемогла!
|
gameover.pvp = [accent]{0}[] команда перемогла!
|
||||||
highscore = [accent]Новий рекорд!
|
highscore = [accent]Новий рекорд!
|
||||||
copied = Скопійовано.
|
copied = Скопійовано.
|
||||||
indevpopup = Наразі [accent]6.0[] знаходиться у стадії [accent]pre-alpha[].\n[lightgray]Це означає наступне:[]\n- Не вистачає наповнення гри;\n- Більшість [scarlet]ШІ бойових одиниць[] не працює;\n- Багато одиниць [scarlet]відсутні[] або незавершені;\n- Кампанія повністю не є завершеною;\n- Усе, що ви бачите, може змінитися або видалитися.\n\nПовідомляйте про вади або збої на [accent]Github[], а про помилки в перекладі в Discord.
|
indevpopup = Наразі [accent]6.0[] знаходиться у стадії [accent]alpha[].\n[lightgray]Це означає наступне:[]\n- Не вистачає наповнення гри;\n- Більшість [scarlet]ШІ бойових одиниць[] не працює;\n- Багато одиниць [scarlet]відсутні[] або незавершені;\n- Кампанія повністю не є завершеною;\n- Усе, що ви бачите, може змінитися або видалитися.\n\nПовідомляйте про вади або збої на [accent]Github[], а про помилки в перекладі в Discord.
|
||||||
|
|
||||||
load.sound = Звуки
|
load.sound = Звуки
|
||||||
load.map = Мапи
|
load.map = Мапи
|
||||||
|
|||||||
@@ -255,8 +255,8 @@ public class Weathers implements ContentList{
|
|||||||
Texture noise;
|
Texture noise;
|
||||||
|
|
||||||
{
|
{
|
||||||
attrs.set(Attribute.spores, 0.5f);
|
attrs.set(Attribute.spores, 1f);
|
||||||
attrs.set(Attribute.light, -0.1f);
|
attrs.set(Attribute.light, -0.15f);
|
||||||
status = StatusEffects.sporeSlowed;
|
status = StatusEffects.sporeSlowed;
|
||||||
statusGround = false;
|
statusGround = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -255,7 +255,13 @@ public class MapView extends Element implements GestureListener{
|
|||||||
Draw.color(Color.gray);
|
Draw.color(Color.gray);
|
||||||
image.setBounds(centerx - sclwidth / 2, centery - sclheight / 2, sclwidth, sclheight);
|
image.setBounds(centerx - sclwidth / 2, centery - sclheight / 2, sclwidth, sclheight);
|
||||||
image.draw();
|
image.draw();
|
||||||
Draw.color();
|
|
||||||
|
Lines.stroke(3f);
|
||||||
|
Draw.color(Pal.accent);
|
||||||
|
Lines.line(centerx - sclwidth/2f, centery, centerx + sclwidth/2f, centery);
|
||||||
|
Lines.line(centerx, centery - sclheight/2f, centerx, centery + sclheight/2f);
|
||||||
|
|
||||||
|
Draw.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
int index = 0;
|
int index = 0;
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import static mindustry.Vars.*;
|
|||||||
|
|
||||||
public class EntityCollisions{
|
public class EntityCollisions{
|
||||||
//range for tile collision scanning
|
//range for tile collision scanning
|
||||||
private static final int r = 2;
|
private static final int r = 1;
|
||||||
//move in 1-unit chunks
|
//move in 1-unit chunks
|
||||||
private static final float seg = 1f;
|
private static final float seg = 1f;
|
||||||
|
|
||||||
|
|||||||
@@ -61,7 +61,8 @@ abstract class HitboxComp implements Posc, QuadTreeObject{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void hitboxTile(Rect rect){
|
public void hitboxTile(Rect rect){
|
||||||
float size = hitSize * 0.66f;
|
//tile hitboxes are never bigger than a tile, otherwise units get stuck
|
||||||
|
float size = Math.min(hitSize * 0.66f, 7.9f);
|
||||||
rect.setCentered(x, y, size, size);
|
rect.setCentered(x, y, size, size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,6 +76,19 @@ public class HudFragment extends Fragment{
|
|||||||
t.table(Styles.black5, top -> top.add("@paused").style(Styles.outlineLabel).pad(8f)).growX();
|
t.table(Styles.black5, top -> top.add("@paused").style(Styles.outlineLabel).pad(8f)).growX();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//minimap + position
|
||||||
|
parent.fill(t -> {
|
||||||
|
t.visible(() -> Core.settings.getBool("minimap") && !state.rules.tutorial && shown);
|
||||||
|
//minimap
|
||||||
|
t.add(new Minimap());
|
||||||
|
t.row();
|
||||||
|
//position
|
||||||
|
t.label(() -> player.tileX() + "," + player.tileY())
|
||||||
|
.visible(() -> Core.settings.getBool("position") && !state.rules.tutorial)
|
||||||
|
.touchable(Touchable.disabled);
|
||||||
|
t.top().right();
|
||||||
|
});
|
||||||
|
|
||||||
//TODO tear this all down
|
//TODO tear this all down
|
||||||
//menu at top left
|
//menu at top left
|
||||||
parent.fill(cont -> {
|
parent.fill(cont -> {
|
||||||
@@ -212,18 +225,6 @@ public class HudFragment extends Fragment{
|
|||||||
}).top().left();
|
}).top().left();
|
||||||
});
|
});
|
||||||
|
|
||||||
parent.fill(t -> {
|
|
||||||
t.visible(() -> Core.settings.getBool("minimap") && !state.rules.tutorial && shown);
|
|
||||||
//minimap
|
|
||||||
t.add(new Minimap());
|
|
||||||
t.row();
|
|
||||||
//position
|
|
||||||
t.label(() -> player.tileX() + "," + player.tileY())
|
|
||||||
.visible(() -> Core.settings.getBool("position") && !state.rules.tutorial)
|
|
||||||
.touchable(Touchable.disabled);
|
|
||||||
t.top().right();
|
|
||||||
});
|
|
||||||
|
|
||||||
//core items
|
//core items
|
||||||
parent.fill(t -> {
|
parent.fill(t -> {
|
||||||
t.top().add(coreItems);
|
t.top().add(coreItems);
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ project.ext.assetsDir = new File("../core/assets")
|
|||||||
|
|
||||||
def enableTemplates = true
|
def enableTemplates = true
|
||||||
def JDK_DIR = "$System.env.JDK_DIR"
|
def JDK_DIR = "$System.env.JDK_DIR"
|
||||||
def ICON_DIR = new File("core/assets/icons/icon.icns")
|
def ICON_DIR = new File("$rootDir/core/assets/icons/icon.icns")
|
||||||
def spriteHashFile = new File(project.rootDir, "build/spritehash")
|
def spriteHashFile = new File(project.rootDir, "build/spritehash")
|
||||||
|
|
||||||
def hashDirectory = {
|
def hashDirectory = {
|
||||||
@@ -127,13 +127,13 @@ PackrConfig.Platform.values().each{ platform ->
|
|||||||
verbose = true
|
verbose = true
|
||||||
bundleIdentifier = getPackage() + ".mac"
|
bundleIdentifier = getPackage() + ".mac"
|
||||||
iconResource = ICON_DIR
|
iconResource = ICON_DIR
|
||||||
outDir = file("build/packr/output")
|
outDir = file("$rootDir/desktop/build/packr/output")
|
||||||
mainClass = project.ext.mainClassName
|
mainClass = project.ext.mainClassName
|
||||||
classpath = ["desktop/build/packr/desktop.jar"]
|
classpath = ["$rootDir/desktop/build/packr/desktop.jar".toString()]
|
||||||
removePlatformLibs = ["desktop/build/packr/desktop.jar"]
|
removePlatformLibs = ["$rootDir/desktop/build/packr/desktop.jar".toString()]
|
||||||
|
|
||||||
vmArgs = []
|
vmArgs = []
|
||||||
minimizeJre = "desktop/packr_minimize.json"
|
minimizeJre = "$rootDir/desktop/packr_minimize.json".toString()
|
||||||
jdk = JDK_DIR + "jdk-${platform.toString().toLowerCase()}.zip"
|
jdk = JDK_DIR + "jdk-${platform.toString().toLowerCase()}.zip"
|
||||||
|
|
||||||
if(platform == PackrConfig.Platform.MacOS){
|
if(platform == PackrConfig.Platform.MacOS){
|
||||||
|
|||||||
Reference in New Issue
Block a user