mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-03 04:44:24 +07:00
Merge branches 'asset-manager' and 'master' of https://github.com/Anuken/Mindustry
This commit is contained in:
commit
43245681fe
17
.github/workflows/gradle.yml
vendored
Normal file
17
.github/workflows/gradle.yml
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
name: Java CI
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Set up JDK 1.8
|
||||||
|
uses: actions/setup-java@v1
|
||||||
|
with:
|
||||||
|
java-version: 1.8
|
||||||
|
- name: Run unit tests with gradle
|
||||||
|
run: ./gradlew test
|
@ -33,7 +33,9 @@ public class MirrorFilter extends GenerateFilter{
|
|||||||
mirror(v3, v1.x, v1.y, v2.x, v2.y);
|
mirror(v3, v1.x, v1.y, v2.x, v2.y);
|
||||||
Tile tile = in.tile(v3.x, v3.y);
|
Tile tile = in.tile(v3.x, v3.y);
|
||||||
in.floor = tile.floor();
|
in.floor = tile.floor();
|
||||||
|
if(!tile.block().synthetic()){
|
||||||
in.block = tile.block();
|
in.block = tile.block();
|
||||||
|
}
|
||||||
in.ore = tile.overlay();
|
in.ore = tile.overlay();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -101,7 +101,7 @@ public class MendProjector extends Block{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void drawPlace(int x, int y, int rotation, boolean valid){
|
public void drawPlace(int x, int y, int rotation, boolean valid){
|
||||||
Drawf.dashCircle(x * tilesize, y * tilesize, range, Pal.accent);
|
Drawf.dashCircle(x * tilesize + offset(), y * tilesize + offset(), range, Pal.accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -36,6 +36,12 @@ task copyAssets(){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task deploy{
|
||||||
|
dependsOn copyAssets
|
||||||
|
dependsOn createIPA
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
build.dependsOn copyAssets
|
build.dependsOn copyAssets
|
||||||
|
|
||||||
launchIPhoneSimulator.dependsOn build
|
launchIPhoneSimulator.dependsOn build
|
||||||
|
Loading…
Reference in New Issue
Block a user