mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-04 22:50:29 +07:00
Made android screen flippable
This commit is contained in:
parent
a1c0449865
commit
f983b72255
@ -14,7 +14,7 @@
|
||||
<activity
|
||||
android:name="io.anuke.mindustry.AndroidLauncher"
|
||||
android:label="@string/app_name"
|
||||
android:screenOrientation="landscape"
|
||||
android:screenOrientation="sensorLandscape"
|
||||
android:configChanges="keyboard|keyboardHidden|orientation|screenSize">
|
||||
<intent-filter>
|
||||
<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());
|
||||
|
||||
if(!shooting){
|
||||
direction.add(vector.scl(Timers.delta()));
|
||||
direction.add(vector);
|
||||
direction.limit(speed*6);
|
||||
}else{
|
||||
float angle = Angles.mouseAngle(x, y);
|
||||
|
@ -150,6 +150,7 @@ public class Conveyor extends Block{
|
||||
}
|
||||
}
|
||||
|
||||
//TODO optimize, maybe with pooling?
|
||||
static class ItemPos{
|
||||
Item item;
|
||||
float pos, y;
|
||||
|
Loading…
Reference in New Issue
Block a user