Made android screen flippable
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
<activity
|
<activity
|
||||||
android:name="io.anuke.mindustry.AndroidLauncher"
|
android:name="io.anuke.mindustry.AndroidLauncher"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:screenOrientation="landscape"
|
android:screenOrientation="sensorLandscape"
|
||||||
android:configChanges="keyboard|keyboardHidden|orientation|screenSize">
|
android:configChanges="keyboard|keyboardHidden|orientation|screenSize">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ public class Player extends DestructibleEntity{
|
|||||||
move(vector.x*Timers.delta(), vector.y*Timers.delta());
|
move(vector.x*Timers.delta(), vector.y*Timers.delta());
|
||||||
|
|
||||||
if(!shooting){
|
if(!shooting){
|
||||||
direction.add(vector.scl(Timers.delta()));
|
direction.add(vector);
|
||||||
direction.limit(speed*6);
|
direction.limit(speed*6);
|
||||||
}else{
|
}else{
|
||||||
float angle = Angles.mouseAngle(x, y);
|
float angle = Angles.mouseAngle(x, y);
|
||||||
|
|||||||
@@ -150,6 +150,7 @@ public class Conveyor extends Block{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//TODO optimize, maybe with pooling?
|
||||||
static class ItemPos{
|
static class ItemPos{
|
||||||
Item item;
|
Item item;
|
||||||
float pos, y;
|
float pos, y;
|
||||||
|
|||||||
Reference in New Issue
Block a user