Made android screen flippable

This commit is contained in:
Anuken
2017-11-13 21:26:01 -05:00
parent a1c0449865
commit f983b72255
3 changed files with 3 additions and 2 deletions

View File

@@ -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" />

View File

@@ -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);

View File

@@ -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;