This commit is contained in:
Ellpeck 2020-06-29 00:49:29 +02:00
parent efbe1a64ac
commit d8981f6d51
3 changed files with 5 additions and 4 deletions

View file

@ -50,7 +50,7 @@
<AndroidEnableProfiledAot>false</AndroidEnableProfiledAot> <AndroidEnableProfiledAot>false</AndroidEnableProfiledAot>
<BundleAssemblies>false</BundleAssemblies> <BundleAssemblies>false</BundleAssemblies>
<MandroidI18n /> <MandroidI18n />
<AndroidPackageFormat>apk</AndroidPackageFormat> <AndroidPackageFormat>aab</AndroidPackageFormat>
<AndroidUseAapt2>true</AndroidUseAapt2> <AndroidUseAapt2>true</AndroidUseAapt2>
<AndroidCreatePackagePerAbi>false</AndroidCreatePackagePerAbi> <AndroidCreatePackagePerAbi>false</AndroidCreatePackagePerAbi>
</PropertyGroup> </PropertyGroup>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="de.ellpeck.touchytickets" android:installLocation="auto" <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="de.ellpeck.touchytickets" android:installLocation="auto"
android:versionCode="100" android:versionName="1.0.0"> android:versionCode="101" android:versionName="1.0.1">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="28"/> <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="28"/>
<application android:label="Touchy Tickets" android:resizeableActivity="true"/> <application android:label="Touchy Tickets" android:resizeableActivity="true"/>
<permission android:name="ACCESS_NETWORK_STATE"/> <permission android:name="ACCESS_NETWORK_STATE"/>

View file

@ -50,8 +50,9 @@ namespace TouchyTickets.Attractions {
var drawScale = scale; var drawScale = scale;
if (this.animationSizeModifier > 0) if (this.animationSizeModifier > 0)
drawScale += (float) Math.Sin(this.animationSizeModifier) * 0.05F; drawScale += (float) Math.Sin(this.animationSizeModifier) * 0.05F;
var center = this.Type.TextureRegion.Size.ToVector2() / 2; var tex = Assets.AttractionTexture[this.Type.TextureRegion];
batch.Draw(Assets.AttractionTexture[this.Type.TextureRegion], position + center * scale, Color.White * alpha, 0, center, drawScale, SpriteEffects.None, 0); var center = tex.Size.ToVector2() / 2;
batch.Draw(tex, position + center * scale, Color.White * alpha, 0, center, drawScale, SpriteEffects.None, 0);
} }
public float GetGenerationRate(ParkMap map, Point position) { public float GetGenerationRate(ParkMap map, Point position) {