فهرست منبع

Added ParticleSample sample to Linux solution

kjpou1 14 سال پیش
والد
کامیت
53ba5a5262
3فایلهای تغییر یافته به همراه139 افزوده شده و 0 حذف شده
  1. 98 0
      Samples/Linux/ParticleSample/ParticleSample.csproj
  2. 19 0
      Samples/Linux/ParticleSample/Program.cs
  3. 22 0
      Samples/MonoGame.Samples.Linux.sln

+ 98 - 0
Samples/Linux/ParticleSample/ParticleSample.csproj

@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProductVersion>10.0.0</ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{EB1F36EC-5DB8-41AC-AB99-E9337239A9F9}</ProjectGuid>
+    <OutputType>Exe</OutputType>
+    <RootNamespace>ParticleSample</RootNamespace>
+    <AssemblyName>ParticleSample</AssemblyName>
+    <StartupObject>ParticleSample.Program</StartupObject>
+    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug</OutputPath>
+    <DefineConstants>DEBUG</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+    <ConsolePause>false</ConsolePause>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>none</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Release</OutputPath>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+    <ConsolePause>false</ConsolePause>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="System" />
+  </ItemGroup>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+  <ItemGroup>
+    <None Include="..\..\MacOS\ParticleSample\Background.png">
+      <Link>Background.png</Link>
+    </None>
+    <None Include="..\..\MacOS\ParticleSample\Game.ico">
+      <Link>Game.ico</Link>
+    </None>
+    <None Include="..\..\MacOS\ParticleSample\GameThumbnail.png">
+      <Link>GameThumbnail.png</Link>
+    </None>
+    <None Include="..\..\MacOS\ParticleSample\Content\explosion.png">
+      <Link>Content\explosion.png</Link>
+    </None>
+    <None Include="..\..\MacOS\ParticleSample\Content\font.spritefont">
+      <Link>Content\font.spritefont</Link>
+    </None>
+    <None Include="..\..\MacOS\ParticleSample\Content\smoke.bmp">
+      <Link>Content\smoke.bmp</Link>
+    </None>
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="..\..\MacOS\ParticleSample\ExplosionParticleSystem.cs">
+      <Link>ExplosionParticleSystem.cs</Link>
+    </Compile>
+    <Compile Include="..\..\MacOS\ParticleSample\ExplosionSmokeParticleSystem.cs">
+      <Link>ExplosionSmokeParticleSystem.cs</Link>
+    </Compile>
+    <Compile Include="..\..\MacOS\ParticleSample\Particle.cs">
+      <Link>Particle.cs</Link>
+    </Compile>
+    <Compile Include="..\..\MacOS\ParticleSample\ParticleSampleGame.cs">
+      <Link>ParticleSampleGame.cs</Link>
+    </Compile>
+    <Compile Include="..\..\MacOS\ParticleSample\ParticleSystem.cs">
+      <Link>ParticleSystem.cs</Link>
+    </Compile>
+    <Compile Include="..\..\MacOS\ParticleSample\SmokePlumeParticleSystem.cs">
+      <Link>SmokePlumeParticleSystem.cs</Link>
+    </Compile>
+    <Compile Include="Program.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <ProjectReference Include="..\..\..\..\MonoGame\MonoGame.Framework\MonoGame.Framework.Linux.csproj">
+      <Project>{35253CE1-C864-4CD3-8249-4D1319748E8F}</Project>
+      <Name>MonoGame.Framework.Linux</Name>
+    </ProjectReference>
+  </ItemGroup>
+  <ItemGroup>
+    <Content Include="..\..\MacOS\ParticleSample\Content\explosion.xnb">
+      <Link>Content\explosion.xnb</Link>
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
+    <Content Include="..\..\MacOS\ParticleSample\Content\font.xnb">
+      <Link>Content\font.xnb</Link>
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
+    <Content Include="..\..\MacOS\ParticleSample\Content\smoke.xnb">
+      <Link>Content\smoke.xnb</Link>
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
+  </ItemGroup>
+</Project>

+ 19 - 0
Samples/Linux/ParticleSample/Program.cs

@@ -0,0 +1,19 @@
+using System;
+
+namespace ParticleSample
+{
+    static class Program
+    {
+        /// <summary>
+        /// The main entry point for the application.
+        /// </summary>
+        static void Main(string[] args)
+        {
+            using (ParticleSampleGame game = new ParticleSampleGame())
+            {
+                game.Run();
+            }
+        }
+    }
+}
+

+ 22 - 0
Samples/MonoGame.Samples.Linux.sln

@@ -35,6 +35,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tile Engine", "Linux\BookSo
 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MonoGame.Samples.RobotRampage.Linux", "Linux\BookSourceCode\XNAGameDevelopmentbyExampleCode\RobotRampage\MonoGame.Samples.RobotRampage.Linux.csproj", "{86A219E2-C8F0-452B-B762-C69D5BB07C98}"
 EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ParticleSample", "Linux\ParticleSample\ParticleSample.csproj", "{EB1F36EC-5DB8-41AC-AB99-E9337239A9F9}"
+EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 		Debug|Any CPU = Debug|Any CPU
@@ -369,6 +371,26 @@ Global
 		{D0E05092-60B2-47FF-B924-D5CDED0C0DD1}.Release|Mixed Platforms.Build.0 = Release|x86
 		{D0E05092-60B2-47FF-B924-D5CDED0C0DD1}.Release|x86.ActiveCfg = Release|x86
 		{D0E05092-60B2-47FF-B924-D5CDED0C0DD1}.Release|x86.Build.0 = Release|x86
+		{EB1F36EC-5DB8-41AC-AB99-E9337239A9F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{EB1F36EC-5DB8-41AC-AB99-E9337239A9F9}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{EB1F36EC-5DB8-41AC-AB99-E9337239A9F9}.Debug|iPhone.ActiveCfg = Debug|Any CPU
+		{EB1F36EC-5DB8-41AC-AB99-E9337239A9F9}.Debug|iPhone.Build.0 = Debug|Any CPU
+		{EB1F36EC-5DB8-41AC-AB99-E9337239A9F9}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
+		{EB1F36EC-5DB8-41AC-AB99-E9337239A9F9}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
+		{EB1F36EC-5DB8-41AC-AB99-E9337239A9F9}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+		{EB1F36EC-5DB8-41AC-AB99-E9337239A9F9}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+		{EB1F36EC-5DB8-41AC-AB99-E9337239A9F9}.Debug|x86.ActiveCfg = Debug|Any CPU
+		{EB1F36EC-5DB8-41AC-AB99-E9337239A9F9}.Debug|x86.Build.0 = Debug|Any CPU
+		{EB1F36EC-5DB8-41AC-AB99-E9337239A9F9}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{EB1F36EC-5DB8-41AC-AB99-E9337239A9F9}.Release|Any CPU.Build.0 = Release|Any CPU
+		{EB1F36EC-5DB8-41AC-AB99-E9337239A9F9}.Release|iPhone.ActiveCfg = Release|Any CPU
+		{EB1F36EC-5DB8-41AC-AB99-E9337239A9F9}.Release|iPhone.Build.0 = Release|Any CPU
+		{EB1F36EC-5DB8-41AC-AB99-E9337239A9F9}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
+		{EB1F36EC-5DB8-41AC-AB99-E9337239A9F9}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
+		{EB1F36EC-5DB8-41AC-AB99-E9337239A9F9}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+		{EB1F36EC-5DB8-41AC-AB99-E9337239A9F9}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+		{EB1F36EC-5DB8-41AC-AB99-E9337239A9F9}.Release|x86.ActiveCfg = Release|Any CPU
+		{EB1F36EC-5DB8-41AC-AB99-E9337239A9F9}.Release|x86.Build.0 = Release|Any CPU
 	EndGlobalSection
 	GlobalSection(NestedProjects) = preSolution
 		{86A219E2-C8F0-452B-B762-C69D5BB07C99} = {0407BF89-E721-419F-B663-8436D9E83495}