-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Francesco Bonizzi
committed
Apr 23, 2019
1 parent
8224d3b
commit fe97814
Showing
10 changed files
with
6,778 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,190 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProductVersion>8.0.30703</ProductVersion> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<ProjectGuid>{F0E6988C-0036-4B1D-ABD6-DDF1046D8B01}</ProjectGuid> | ||
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> | ||
<TemplateGuid>{122416d6-6b49-4ee2-a1e8-b825f31c79fe}</TemplateGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>Infart.Android</RootNamespace> | ||
<AssemblyName>Infart.Android</AssemblyName> | ||
<FileAlignment>512</FileAlignment> | ||
<AndroidApplication>True</AndroidApplication> | ||
<AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile> | ||
<AndroidResgenClass>Resource</AndroidResgenClass> | ||
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies> | ||
<AndroidUseLatestPlatformSdk>false</AndroidUseLatestPlatformSdk> | ||
<TargetFrameworkVersion>v8.1</TargetFrameworkVersion> | ||
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest> | ||
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix> | ||
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix> | ||
<AndroidEnableSGenConcurrent>true</AndroidEnableSGenConcurrent> | ||
<AndroidHttpClientHandlerType>Xamarin.Android.Net.AndroidClientHandler</AndroidHttpClientHandlerType> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>True</DebugSymbols> | ||
<DebugType>portable</DebugType> | ||
<Optimize>False</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<AndroidUseSharedRuntime>True</AndroidUseSharedRuntime> | ||
<AndroidLinkMode>None</AndroidLinkMode> | ||
<EmbedAssembliesIntoApk>False</EmbedAssembliesIntoApk> | ||
<AotAssemblies>false</AotAssemblies> | ||
<EnableLLVM>false</EnableLLVM> | ||
<BundleAssemblies>false</BundleAssemblies> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugSymbols>True</DebugSymbols> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>True</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<AndroidManagedSymbols>true</AndroidManagedSymbols> | ||
<AndroidUseSharedRuntime>False</AndroidUseSharedRuntime> | ||
<AndroidLinkMode>SdkOnly</AndroidLinkMode> | ||
<EmbedAssembliesIntoApk>True</EmbedAssembliesIntoApk> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Xml" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="Mono.Android" /> | ||
<Reference Include="System.Numerics" /> | ||
<Reference Include="System.Numerics.Vectors" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="MainActivity.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
<Compile Include="Resources\Resource.designer.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<AndroidAsset Include="..\Infart\Assets\ContentBuilder\bin\Music\Farts\fart1.xnb"> | ||
<Link>Assets\Content\Music\Farts\fart1.xnb</Link> | ||
</AndroidAsset> | ||
<AndroidAsset Include="..\Infart\Assets\ContentBuilder\bin\Music\Farts\fart2.xnb"> | ||
<Link>Assets\Content\Music\Farts\fart2.xnb</Link> | ||
</AndroidAsset> | ||
<AndroidAsset Include="..\Infart\Assets\ContentBuilder\bin\Music\Farts\fart3.xnb"> | ||
<Link>Assets\Content\Music\Farts\fart3.xnb</Link> | ||
</AndroidAsset> | ||
<AndroidAsset Include="..\Infart\Assets\ContentBuilder\bin\Music\Farts\fart4.xnb"> | ||
<Link>Assets\Content\Music\Farts\fart4.xnb</Link> | ||
</AndroidAsset> | ||
<AndroidAsset Include="..\Infart\Assets\ContentBuilder\bin\Music\Farts\fart5.xnb"> | ||
<Link>Assets\Content\Music\Farts\fart5.xnb</Link> | ||
</AndroidAsset> | ||
<AndroidAsset Include="..\Infart\Assets\ContentBuilder\bin\Music\Farts\fart6.xnb"> | ||
<Link>Assets\Content\Music\Farts\fart6.xnb</Link> | ||
</AndroidAsset> | ||
<AndroidAsset Include="..\Infart\Assets\ContentBuilder\bin\Music\Farts\fart7.xnb"> | ||
<Link>Assets\Content\Music\Farts\fart7.xnb</Link> | ||
</AndroidAsset> | ||
<AndroidAsset Include="..\Infart\Assets\ContentBuilder\bin\Music\Effects\bite.xnb"> | ||
<Link>Assets\Content\Music\Effects\bite.xnb</Link> | ||
</AndroidAsset> | ||
<AndroidAsset Include="..\Infart\Assets\ContentBuilder\bin\Music\Effects\explosion.xnb"> | ||
<Link>Assets\Content\Music\Effects\explosion.xnb</Link> | ||
</AndroidAsset> | ||
<AndroidAsset Include="..\Infart\Assets\ContentBuilder\bin\Music\Effects\fall.xnb"> | ||
<Link>Assets\Content\Music\Effects\fall.xnb</Link> | ||
</AndroidAsset> | ||
<AndroidAsset Include="..\Infart\Assets\ContentBuilder\bin\Music\Effects\heartbeat.xnb"> | ||
<Link>Assets\Content\Music\Effects\heartbeat.xnb</Link> | ||
</AndroidAsset> | ||
<AndroidAsset Include="..\Infart\Assets\ContentBuilder\bin\Music\Effects\jalapeno.xnb"> | ||
<Link>Assets\Content\Music\Effects\jalapeno.xnb</Link> | ||
</AndroidAsset> | ||
<AndroidAsset Include="..\Infart\Assets\ContentBuilder\bin\Music\Effects\thunder.xnb"> | ||
<Link>Assets\Content\Music\Effects\thunder.xnb</Link> | ||
</AndroidAsset> | ||
<AndroidAsset Include="..\Infart\Assets\ContentBuilder\bin\Music\Effects\truck.xnb"> | ||
<Link>Assets\Content\Music\Effects\truck.xnb</Link> | ||
</AndroidAsset> | ||
<AndroidAsset Include="..\Infart\Assets\ContentBuilder\bin\Music\Music-Game.xnb"> | ||
<Link>Assets\Content\Music\Music-Game.xnb</Link> | ||
</AndroidAsset> | ||
<AndroidAsset Include="..\Infart\Assets\ContentBuilder\bin\Music\Music-Menu.xnb"> | ||
<Link>Assets\Content\Music\Music-Menu.xnb</Link> | ||
</AndroidAsset> | ||
<AndroidAsset Include="..\Infart\Assets\ContentBuilder\bin\buildings_back.xnb"> | ||
<Link>Assets\Content\buildings_back.xnb</Link> | ||
</AndroidAsset> | ||
<AndroidAsset Include="..\Infart\Assets\ContentBuilder\bin\buildings_ground.xnb"> | ||
<Link>Assets\Content\buildings_ground.xnb</Link> | ||
</AndroidAsset> | ||
<AndroidAsset Include="..\Infart\Assets\ContentBuilder\bin\buildings_mid.xnb"> | ||
<Link>Assets\Content\buildings_mid.xnb</Link> | ||
</AndroidAsset> | ||
<AndroidAsset Include="..\Infart\Assets\ContentBuilder\bin\gameoverBackground.xnb"> | ||
<Link>Assets\Content\gameoverBackground.xnb</Link> | ||
</AndroidAsset> | ||
<AndroidAsset Include="..\Infart\Assets\ContentBuilder\bin\gameTitle.xnb"> | ||
<Link>Assets\Content\gameTitle.xnb</Link> | ||
</AndroidAsset> | ||
<AndroidAsset Include="..\Infart\Assets\ContentBuilder\bin\manina.xnb"> | ||
<Link>Assets\Content\manina.xnb</Link> | ||
</AndroidAsset> | ||
<AndroidAsset Include="..\Infart\Assets\ContentBuilder\bin\menuBackground.xnb"> | ||
<Link>Assets\Content\menuBackground.xnb</Link> | ||
</AndroidAsset> | ||
<AndroidAsset Include="..\Infart\Assets\ContentBuilder\bin\scoreBackground.xnb"> | ||
<Link>Assets\Content\scoreBackground.xnb</Link> | ||
</AndroidAsset> | ||
<AndroidAsset Include="..\Infart\Assets\ContentBuilder\bin\Splashscreen.xnb"> | ||
<Link>Assets\Content\Splashscreen.xnb</Link> | ||
</AndroidAsset> | ||
<AndroidAsset Include="..\Infart\Assets\ContentBuilder\bin\TextFont.xnb"> | ||
<Link>Assets\Content\TextFont.xnb</Link> | ||
</AndroidAsset> | ||
<AndroidAsset Include="..\Infart\Assets\ContentBuilder\bin\textures.xnb"> | ||
<Link>Assets\Content\textures.xnb</Link> | ||
</AndroidAsset> | ||
<None Include="Properties\AndroidManifest.xml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="FbonizziMonoGame"> | ||
<Version>1.0.1</Version> | ||
</PackageReference> | ||
<PackageReference Include="FbonizziMonoGame.Android"> | ||
<Version>1.0.0</Version> | ||
</PackageReference> | ||
<PackageReference Include="MonoGame.Framework.Android"> | ||
<Version>3.7.1.189</Version> | ||
</PackageReference> | ||
<PackageReference Include="Xamarin.Android.Support.Design" Version="28.0.0.1" /> | ||
<PackageReference Include="Xamarin.Android.Support.Core.Utils" Version="28.0.0.1" /> | ||
<PackageReference Include="Xamarin.Android.Support.CustomTabs" Version="28.0.0.1" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\Infart\Infart.csproj"> | ||
<Project>{d757d795-bf2d-45aa-b676-0ea0ab5e2a5c}</Project> | ||
<Name>Infart</Name> | ||
</ProjectReference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<AndroidResource Include="Resources\drawable\icon.png" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<AndroidResource Include="Resources\layout\Main.axml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<AndroidResource Include="Resources\values\strings.xml" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" /> | ||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | ||
Other similar extension points exist, see Microsoft.Common.targets. | ||
<Target Name="BeforeBuild"> | ||
</Target> | ||
<Target Name="AfterBuild"> | ||
</Target> | ||
--> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
using Android.App; | ||
using Android.Content.PM; | ||
using Android.Views; | ||
using FbonizziMonoGame.PlatformAbstractions; | ||
using FbonizziMonoGameAndroid; | ||
using System; | ||
using System.Globalization; | ||
|
||
namespace Infart.Android | ||
{ | ||
[Activity( | ||
Label = "INFART", | ||
Icon = "@drawable/icon", | ||
MainLauncher = true, | ||
AlwaysRetainTaskState = true, | ||
LaunchMode = LaunchMode.SingleInstance, | ||
ScreenOrientation = ScreenOrientation.Landscape, | ||
ConfigurationChanges = ConfigChanges.Orientation | | ||
ConfigChanges.KeyboardHidden | | ||
ConfigChanges.Keyboard)] | ||
public class MainActivity : FbonizziMonoGameActivity | ||
{ | ||
private InfartBootstrap _game; | ||
|
||
protected override IFbonizziGame StartGame(CultureInfo cultureInfo) | ||
{ | ||
_game = new InfartBootstrap( | ||
textFileAssetsLoader: new AndroidTextFileImporter(Assets), | ||
settingsRepository: new AndroidSettingsRepository(this), | ||
webPageOpener: new AndroidWebPageOpener(this), | ||
gameCulture: cultureInfo, | ||
isFullScreen: true, | ||
isPc: false, | ||
rateMeUri: new Uri("market://details?id=com.francescobonizzi.infart")); | ||
|
||
_game.Run(); | ||
SetContentView((View)_game.Services.GetService(typeof(View))); | ||
|
||
return _game; | ||
} | ||
|
||
protected override void DisposeGame() | ||
{ | ||
_game?.Dispose(); | ||
_game = null; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1" package="com.francescobonizzi.infart" android:installLocation="auto"> | ||
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="27" /> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
<application android:allowBackup="true" android:icon="@drawable/icon" android:label="Infart" android:supportsRtl="true"></application> | ||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
using System.Runtime.InteropServices; | ||
using Android.App; | ||
|
||
// General Information about an assembly is controlled through the following | ||
// set of attributes. Change these attribute values to modify the information | ||
// associated with an assembly. | ||
[assembly: AssemblyTitle("Infart.Android")] | ||
[assembly: AssemblyDescription("")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("")] | ||
[assembly: AssemblyProduct("Infart.Android")] | ||
[assembly: AssemblyCopyright("Copyright © 2018")] | ||
[assembly: AssemblyTrademark("")] | ||
[assembly: AssemblyCulture("")] | ||
[assembly: ComVisible(false)] | ||
|
||
// Version information for an assembly consists of the following four values: | ||
// | ||
// Major Version | ||
// Minor Version | ||
// Build Number | ||
// Revision | ||
// | ||
// You can specify all the values or you can default the Build and Revision Numbers | ||
// by using the '*' as shown below: | ||
// [assembly: AssemblyVersion("1.0.*")] | ||
[assembly: AssemblyVersion("1.0.0.0")] | ||
[assembly: AssemblyFileVersion("1.0.0.0")] |
Oops, something went wrong.