Skip to content
This repository has been archived by the owner on Nov 12, 2020. It is now read-only.

Commit

Permalink
Physics2D and Physics3D samples ported to new project templates from …
Browse files Browse the repository at this point in the history
…Wave Engine v2.5
  • Loading branch information
vicfergar committed Jun 26, 2018
1 parent 1269785 commit fab372b
Show file tree
Hide file tree
Showing 269 changed files with 4,732 additions and 2,670 deletions.
18 changes: 16 additions & 2 deletions Physics2D/BasicPhysic2D/BasicPhysic2D.weproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="WaveEngine.Framework.Models">
<Id>4b298d77-0f50-4c51-aee4-28d762d66a87</Id>
<Id>2d00416d-ae58-4f1b-9d83-31fd3b75116f</Id>
<GameInfoPath>BasicPhysic2D.wgame</GameInfoPath>
<ResourcesPath>Content</ResourcesPath>
<Settings xmlns:d2p1="WaveEngine.Framework.Models.Settings">
Expand All @@ -15,6 +15,20 @@
<NonAlphaCompressionFormat>DXT5</NonAlphaCompressionFormat>
<Platform>Windows</Platform>
</Profile>
<Profile>
<AlphaCompressionFormat>R8G8B8A8</AlphaCompressionFormat>
<LauncherType>Default</LauncherType>
<Name>Linux</Name>
<NonAlphaCompressionFormat>R8G8B8A8</NonAlphaCompressionFormat>
<Platform>Linux</Platform>
</Profile>
<Profile>
<AlphaCompressionFormat>R8G8B8A8</AlphaCompressionFormat>
<LauncherType>Default</LauncherType>
<Name>MacOS</Name>
<NonAlphaCompressionFormat>R8G8B8A8</NonAlphaCompressionFormat>
<Platform>MacOS</Platform>
</Profile>
</d5p1:Profiles>
</d3p1:Value>
</d3p1:KeyValueOfstringanyType>
Expand All @@ -26,5 +40,5 @@
<d2p1:_Minor>5</d2p1:_Minor>
<d2p1:_Revision>0</d2p1:_Revision>
</Version>
<WaveVersion>2.5.1-alpha-20180521-646</WaveVersion>
<WaveVersion>2.5.1-alpha-20180620-662</WaveVersion>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.31101.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VehiclePhysics2D", "Launchers\LinuxProfile\VehiclePhysics2D.csproj", "{D5CB11BC-0227-42AF-BE20-306B5744F50C}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BasicPhysic2D", "Launchers\Linux\BasicPhysic2D.csproj", "{D5CB11BC-0227-42AF-BE20-306B5744F50C}"
EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "VehiclePhysics2DSource", "SharedSource\Main\VehiclePhysics2DSource.shproj", "{846D34C8-E537-4DC7-B646-CFF649CE42E4}"
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "BasicPhysic2DSource", "SharedSource\Main\BasicPhysic2DSource.shproj", "{846D34C8-E537-4DC7-B646-CFF649CE42E4}"
EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
SharedSource\Main\VehiclePhysics2DSource.projitems*{846d34c8-e537-4dc7-b646-cff649ce42e4}*SharedItemsImports = 13
SharedSource\Main\VehiclePhysics2DSource.projitems*{d5cb11bc-0227-42af-be20-306b5744f50c}*SharedItemsImports = 4
SharedSource\Main\BasicPhysic2DSource.projitems*{846d34c8-e537-4dc7-b646-cff649ce42e4}*SharedItemsImports = 13
SharedSource\Main\BasicPhysic2DSource.projitems*{d5cb11bc-0227-42af-be20-306b5744f50c}*SharedItemsImports = 4
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x86 = Debug|x86
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "VehiclePhysics2DSource", "SharedSource\Main\VehiclePhysics2DSource.shproj", "{846D34C8-E537-4DC7-B646-CFF649CE42E4}"
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "BasicPhysic2DSource", "SharedSource\Main\BasicPhysic2DSource.shproj", "{846D34C8-E537-4DC7-B646-CFF649CE42E4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VehiclePhysics2D", "Launchers\MacOSProfile\VehiclePhysics2D.csproj", "{F3CC4527-43AF-41CB-94C1-BFF310D5726A}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BasicPhysic2D", "Launchers\MacOS\BasicPhysic2D.csproj", "{F3CC4527-43AF-41CB-94C1-BFF310D5726A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
28 changes: 14 additions & 14 deletions Physics2D/BasicPhysic2D/Content/Scenes/MyScene.wscene
Original file line number Diff line number Diff line change
Expand Up @@ -2829,7 +2829,7 @@
<d5p1:LocalOrientation xmlns:d6p1="WaveEngine.Common.Math">
<d6p1:W>0.990268052</d6p1:W>
<d6p1:X>0</d6p1:X>
<d6p1:Y>-0</d6p1:Y>
<d6p1:Y>0</d6p1:Y>
<d6p1:Z>0.13917309</d6p1:Z>
</d5p1:LocalOrientation>
<d5p1:LocalPosition xmlns:d6p1="WaveEngine.Common.Math">
Expand Down Expand Up @@ -3317,7 +3317,7 @@
<d5p1:LocalOrientation xmlns:d6p1="WaveEngine.Common.Math">
<d6p1:W>0.990268052</d6p1:W>
<d6p1:X>0</d6p1:X>
<d6p1:Y>-0</d6p1:Y>
<d6p1:Y>0</d6p1:Y>
<d6p1:Z>0.13917309</d6p1:Z>
</d5p1:LocalOrientation>
<d5p1:LocalPosition xmlns:d6p1="WaveEngine.Common.Math">
Expand Down Expand Up @@ -3672,9 +3672,9 @@
<d6p1:Z>0</d6p1:Z>
</d5p1:LocalOrientation>
<d5p1:LocalPosition xmlns:d6p1="WaveEngine.Common.Math">
<d6p1:X>2449.37964</d6p1:X>
<d6p1:Y>2093.3</d6p1:Y>
<d6p1:Z>0</d6p1:Z>
<d6p1:X>619.899963</d6p1:X>
<d6p1:Y>-91.15003</d6p1:Y>
<d6p1:Z>-2</d6p1:Z>
</d5p1:LocalPosition>
<d5p1:LocalScale xmlns:d6p1="WaveEngine.Common.Math">
<d6p1:X>1</d6p1:X>
Expand All @@ -3685,17 +3685,17 @@
<d5p1:Rectangle xmlns:d6p1="http://schemas.datacontract.org/2004/07/WaveEngine.Common.Math">
<d6p1:Height>21</d6p1:Height>
<d6p1:Width>366</d6p1:Width>
<d6p1:X>-402.6</d6p1:X>
<d6p1:Y>42</d6p1:Y>
<d6p1:X>-183</d6p1:X>
<d6p1:Y>10.5</d6p1:Y>
</d5p1:Rectangle>
<d5p1:effect>None</d5p1:effect>
<d5p1:origin xmlns:d6p1="http://schemas.datacontract.org/2004/07/WaveEngine.Common.Math">
<d6p1:X>0</d6p1:X>
<d6p1:Y>0</d6p1:Y>
<d6p1:X>0.5</d6p1:X>
<d6p1:Y>0.5</d6p1:Y>
</d5p1:origin>
<d5p1:screenPosition xmlns:d6p1="http://schemas.datacontract.org/2004/07/WaveEngine.Common.Math">
<d6p1:X>0.9</d6p1:X>
<d6p1:Y>0.9</d6p1:Y>
<d6p1:X>0.5</d6p1:X>
<d6p1:Y>0.05</d6p1:Y>
</d5p1:screenPosition>
<d5p1:transformMode>Screen</d5p1:transformMode>
</d4p1:Component>
Expand All @@ -3710,15 +3710,15 @@
</d5p1:foreground>
<d5p1:lineSpacing>0</d5p1:lineSpacing>
<d5p1:origin xmlns:d6p1="http://schemas.datacontract.org/2004/07/WaveEngine.Common.Math">
<d6p1:X>0</d6p1:X>
<d6p1:Y>0</d6p1:Y>
<d6p1:X>0.5</d6p1:X>
<d6p1:Y>0.5</d6p1:Y>
</d5p1:origin>
<d5p1:scale xmlns:d6p1="http://schemas.datacontract.org/2004/07/WaveEngine.Common.Math">
<d6p1:X>1</d6p1:X>
<d6p1:Y>1</d6p1:Y>
</d5p1:scale>
<d5p1:text>Textures made by Kenney (www.kenney.nl)</d5p1:text>
<d5p1:textAlignment>Left</d5p1:textAlignment>
<d5p1:textAlignment>Center</d5p1:textAlignment>
<d5p1:textWrapping>false</d5p1:textWrapping>
<d5p1:width>300</d5p1:width>
</d4p1:Component>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,34 @@
using WaveEngine.Common.Math;
using WaveEngine.Framework.Graphics;

namespace VehiclePhysics2D
namespace BasicPhysic2D
{
public class App : WaveEngine.Adapter.Application
{
VehiclePhysics2D.Game game;
BasicPhysic2D.Game game;
SpriteBatch spriteBatch;
Texture2D splashScreen;
bool splashState = true;
TimeSpan time;
Vector2 position;
Color backgroundSplashColor;
bool lastKeyF10Pressed = false;

public App()
{
this.Width = 1280;
this.Height = 720;
this.FullScreen = false;
this.WindowTitle = "VehiclePhysics2D";
this.WindowTitle = "BasicPhysic2D";
}

public override void Initialize()
{
this.game = new VehiclePhysics2D.Game();
this.game = new BasicPhysic2D.Game();
this.game.Initialize(this);

#region DEFAULT SPLASHSCREEN
this.backgroundSplashColor = new Color("#ebebeb");
this.backgroundSplashColor = Color.White;
this.spriteBatch = new SpriteBatch(WaveServices.GraphicsDevice);

var resourceNames = Assembly.GetExecutingAssembly().GetManifestResourceNames();
Expand Down Expand Up @@ -65,16 +66,19 @@ public override void Update(TimeSpan elapsedTime)
{
if (this.game != null && !this.game.HasExited)
{
if (WaveServices.Input.KeyboardState.F10 == ButtonState.Pressed)
bool keyF10Pressed = WaveServices.Input.KeyboardState.F10 == ButtonState.Pressed;
if (keyF10Pressed && !this.lastKeyF10Pressed)
{
this.FullScreen = !this.FullScreen;
}

this.lastKeyF10Pressed = keyF10Pressed;

if (this.splashState)
{
#region DEFAULT SPLASHSCREEN
position.X = (this.Width / 2.0f) - (this.splashScreen.Width / 2.0f);
position.Y = (this.Height / 2.0f) - (this.splashScreen.Height / 2.0f);
position.Y = (this.Height / 2.0f) - (this.splashScreen.Height / 2.0f);
this.time += elapsedTime;
if (time > TimeSpan.FromSeconds(2))
{
Expand All @@ -96,7 +100,7 @@ public override void Update(TimeSpan elapsedTime)
}
}

public override void Draw(TimeSpan elapsedTime)
public override void Draw(TimeSpan elapsedTime)
{
if (this.game != null && !this.game.HasExited)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>VehiclePhysics2D</RootNamespace>
<AssemblyName>VehiclePhysics2D</AssemblyName>
<RootNamespace>BasicPhysic2D</RootNamespace>
<AssemblyName>BasicPhysic2D</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
Expand Down Expand Up @@ -57,25 +57,32 @@
<Reference Include="System.Net" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="WaveEngine.Adapter">
<HintPath>..\..\packages\WaveEngine.Adapter.2.5.1-alpha-20180208-617\lib\Mono\WaveEngine.Adapter.dll</HintPath>
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\packages\WaveEngine.Adapter.2.5.1-alpha-20180620-662\lib\Mono\WaveEngine.Adapter.dll</HintPath>
</Reference>
<Reference Include="WaveEngine.Common">
<HintPath>..\..\packages\WaveEngine.Common.2.5.1-alpha-20180208-617\lib\Mono\WaveEngine.Common.dll</HintPath>
<HintPath>..\..\packages\WaveEngine.Common.2.5.1-alpha-20180620-662\lib\Mono\WaveEngine.Common.dll</HintPath>
</Reference>
<Reference Include="WaveEngine.Box2D">
<HintPath>..\..\packages\WaveEngine.Box2D.2.5.1-alpha-20180208-617\lib\Mono\WaveEngine.Box2D.dll</HintPath>
<HintPath>..\..\packages\WaveEngine.Box2D.2.5.1-alpha-20180620-662\lib\Mono\WaveEngine.Box2D.dll</HintPath>
</Reference>
<Reference Include="WaveEngine.Bullet">
<HintPath>..\..\packages\WaveEngine.Bullet.2.5.1-alpha-20180620-662\lib\Mono\WaveEngine.Bullet.dll</HintPath>
</Reference>
<Reference Include="WaveEngine.Framework">
<HintPath>..\..\packages\WaveEngine.Framework.2.5.1-alpha-20180208-617\lib\Mono\WaveEngine.Framework.dll</HintPath>
<HintPath>..\..\packages\WaveEngine.Framework.2.5.1-alpha-20180620-662\lib\Mono\WaveEngine.Framework.dll</HintPath>
</Reference>
<Reference Include="WaveEngine.Components">
<HintPath>..\..\packages\WaveEngine.Components.2.5.1-alpha-20180208-617\lib\Mono\WaveEngine.Components.dll</HintPath>
<HintPath>..\..\packages\WaveEngine.Components.2.5.1-alpha-20180620-662\lib\Mono\WaveEngine.Components.dll</HintPath>
</Reference>
<Reference Include="WaveEngine.Materials">
<HintPath>..\..\packages\WaveEngine.Materials.2.5.1-alpha-20180208-617\lib\Mono\WaveEngine.Materials.dll</HintPath>
<HintPath>..\..\packages\WaveEngine.Materials.2.5.1-alpha-20180620-662\lib\Mono\WaveEngine.Materials.dll</HintPath>
</Reference>
<Reference Include="WaveEngine.ImageEffects">
<HintPath>..\..\packages\WaveEngine.ImageEffects.2.5.1-alpha-20180208-617\lib\Mono\WaveEngine.ImageEffects.dll</HintPath>
<HintPath>..\..\packages\WaveEngine.ImageEffects.2.5.1-alpha-20180620-662\lib\Mono\WaveEngine.ImageEffects.dll</HintPath>
</Reference>
<Reference Include="OpenTK">
<HintPath>..\..\packages\WaveEngine.Adapter.2.5.1-alpha-20180620-662\lib\Mono\OpenTK.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand All @@ -95,16 +102,17 @@
<Target Name="AfterBuild">
</Target>
-->
<Import Project="..\..\SharedSource\Main\VehiclePhysics2DSource.projitems" Label="Shared" Condition="Exists('..\..\SharedSource\Main\VehiclePhysics2DSource.projitems')" />
<Import Project="..\..\SharedSource\Main\BasicPhysic2DSource.projitems" Label="Shared" Condition="Exists('..\..\SharedSource\Main\BasicPhysic2DSource.projitems')" />
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="..\..\packages\WaveEngine.2.5.1-alpha-20180208-617\build\Mono\WaveEngine.targets" Condition="Exists('..\..\packages\WaveEngine.2.5.1-alpha-20180208-617\build\Mono\WaveEngine.targets')" />
<Import Project="..\..\packages\WaveEngine.2.5.1-alpha-20180620-662\build\Mono\WaveEngine.targets" Condition="Exists('..\..\packages\WaveEngine.2.5.1-alpha-20180620-662\build\Mono\WaveEngine.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\..\packages\WaveEngine.2.5.1-alpha-20180208-617\build\Mono\WaveEngine.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WaveEngine.2.5.1-alpha-20180208-617\build\Mono\WaveEngine.targets'))" />
<Error Condition="!Exists('..\..\packages\WaveEngine.2.5.1-alpha-20180620-662\build\Mono\WaveEngine.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WaveEngine.2.5.1-alpha-20180620-662\build\Mono\WaveEngine.targets'))" />
</Target>
<Import Project="..\..\packages\WaveEngine.Box2D.2.5.1-alpha-20180208-617\build\Mono\WaveEngine.Box2D.targets" Condition="Exists('..\..\packages\WaveEngine.Box2D.2.5.1-alpha-20180208-617\build\Mono\WaveEngine.Box2D.targets')" />
<Import Project="..\..\packages\WaveEngine.Box2D.2.5.1-alpha-20180620-662\build\Mono\WaveEngine.Box2D.targets" Condition="Exists('..\..\packages\WaveEngine.Box2D.2.5.1-alpha-20180620-662\build\Mono\WaveEngine.Box2D.targets')" />
<Import Project="..\..\packages\WaveEngine.Bullet.2.5.1-alpha-20180620-662\build\Mono\WaveEngine.Bullet.targets" Condition="Exists('..\..\packages\WaveEngine.Bullet.2.5.1-alpha-20180620-662\build\Mono\WaveEngine.Bullet.targets')" />
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.5">
<Visible>False</Visible>
Expand All @@ -123,17 +131,17 @@
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<None Include="..\..\packages\WaveEngine.Adapter.2.5.1-alpha-20180208-617\lib\Mono\OpenTK.dll.config">
<None Include="..\..\packages\WaveEngine.Adapter.2.5.1-alpha-20180620-662\lib\Mono\OpenTK.dll.config">
<Link>OpenTK.dll.config</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="..\..\packages\WaveEngine.Adapter.2.5.1-alpha-20180208-617\lib\Mono\SdlDotNet.dll.config">
<None Include="..\..\packages\WaveEngine.Adapter.2.5.1-alpha-20180620-662\lib\Mono\SdlDotNet.dll.config">
<Link>SdlDotNet.dll.config</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="..\..\packages\WaveEngine.Adapter.2.5.1-alpha-20180208-617\lib\Mono\Tao.Sdl.dll.config">
<None Include="..\..\packages\WaveEngine.Adapter.2.5.1-alpha-20180620-662\lib\Mono\Tao.Sdl.dll.config">
<Link>Tao.Sdl.dll.config</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>
</Project>
Binary file added Physics2D/BasicPhysic2D/Launchers/Linux/Game.ico
Binary file not shown.
19 changes: 19 additions & 0 deletions Physics2D/BasicPhysic2D/Launchers/Linux/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System;

namespace BasicPhysic2D
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
static void Main(string[] args)
{
using (App game = new App())
{
game.Run();
}
}
}
}

Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using Android.App;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand All @@ -8,11 +7,11 @@
// 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("VehiclePhysics2D")]
[assembly: AssemblyProduct("VehiclePhysics2D")]
[assembly: AssemblyTitle("BasicPhysic2D")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -28,7 +27,7 @@
// On Windows, the following GUID is for the ID of the typelib if this
// project is exposed to COM. On other platforms, it unique identifies the
// title storage container when deploying this assembly to the device.
[assembly: Guid("ff618f7d-0da0-493e-aad5-4c4299956a5c")]
[assembly: Guid("fcfa38ed-1cf5-4997-a771-01c566395539")]

// Version information for an assembly consists of the following four values:
//
Expand All @@ -39,5 +38,3 @@
//
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: NeutralResourcesLanguageAttribute("en-US")]
[assembly: Application(Icon = "@drawable/icon")]

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions Physics2D/BasicPhysic2D/Launchers/Linux/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="WaveEngine.Adapter" version="2.5.1-alpha-20180620-662" targetFramework="Mono" />
<package id="WaveEngine.Common" version="2.5.1-alpha-20180620-662" targetFramework="Mono" />
<package id="WaveEngine.Components" version="2.5.1-alpha-20180620-662" targetFramework="Mono" />
<package id="WaveEngine.Box2D" version="2.5.1-alpha-20180620-662" targetFramework="Mono" />
<package id="WaveEngine.Bullet" version="2.5.1-alpha-20180620-662" targetFramework="Mono" />
<package id="WaveEngine.Framework" version="2.5.1-alpha-20180620-662" targetFramework="Mono" />
<package id="WaveEngine.Materials" version="2.5.1-alpha-20180620-662" targetFramework="Mono" />
<package id="WaveEngine.ImageEffects" version="2.5.1-alpha-20180620-662" targetFramework="Mono" />
<package id="WaveEngine" version="2.5.1-alpha-20180620-662" targetFramework="Mono" />
</packages>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Foundation;
using AppKit;

namespace VehiclePhysics2D
namespace BasicPhysic2D
{
public partial class AppDelegate : NSApplicationDelegate
{
Expand All @@ -12,6 +12,11 @@ public override void DidFinishLaunching (NSNotification notification)
mainWindowController = new MainWindowController ();
mainWindowController.Window.MakeKeyAndOrderFront (this);
}

public override bool ApplicationShouldTerminateAfterLastWindowClosed(NSApplication sender)
{
return true;
}
}
}

Loading

0 comments on commit fab372b

Please sign in to comment.