2
0
Эх сурвалжийг харах

First samples ported to PS Suite. Currently Aiming is the only one that works, as that does not use Spritefonts, but they all compile. Once spritefonts is implemented it should just work.

Dominique Louis 13 жил өмнө
parent
commit
d91a66413b

+ 3 - 0
Aiming/Main.cs

@@ -2,8 +2,11 @@
 using System;
 using System.Collections.Generic;
 using System.Linq;
+
+#if IPHONE
 using MonoTouch.Foundation;
 using MonoTouch.UIKit;
+#endif
 
 namespace Aiming
 {

+ 61 - 0
Aiming/MonoGame.Samples.Aiming.PSSuite.csproj

@@ -0,0 +1,61 @@
+<?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>{4465C957-DB01-4FE4-8ADE-A7A7CA2CD773}</ProjectGuid>
+    <ProjectTypeGuids>{69878862-DA7D-4DC6-B0A1-50D8FAB4242F};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+    <OutputType>Exe</OutputType>
+    <RootNamespace>MonoGame.Samples.Aiming.PSSuite</RootNamespace>
+    <AssemblyName>MonoGame.Samples.Aiming.PSSuite</AssemblyName>
+  </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>true</Optimize>
+    <OutputPath>bin\Release</OutputPath>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+    <ConsolePause>false</ConsolePause>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="System" />
+    <Reference Include="System.Xml" />
+    <Reference Include="System.Core" />
+    <Reference Include="Sce.Pss.Core" />
+  </ItemGroup>
+  <Import Project="$(MSBuildExtensionsPath)\Sce\Sce.Pss.CSharp.targets" />
+  <ItemGroup>
+    <Compile Include="AimingGame.cs" />
+    <Compile Include="Main.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <Folder Include="Content\" />
+  </ItemGroup>
+  <ItemGroup>
+    <Content Include="Content\cat.png">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
+    <Content Include="Content\spotlight.png">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
+    <Content Include="app.cfg" />
+  </ItemGroup>
+  <ItemGroup>
+    <ProjectReference Include="..\..\MonoGame.Framework\MonoGame.Framework.PSSuite.csproj">
+      <Project>{EA26E76F-FDFE-4A8C-B5A3-C3B5761E28F9}</Project>
+      <Name>MonoGame.Framework.PSSuite</Name>
+    </ProjectReference>
+  </ItemGroup>
+</Project>

+ 8 - 0
Aiming/app.cfg

@@ -0,0 +1,8 @@
+memory:
+    resource_heap_size : 16384
+    managed_heap_size : 16384
+
+input:
+    gamepad : false
+    touch : false
+    motion : false

+ 66 - 0
ChaseAndEvade/MonoGame.Samples.ChaseAndEvade.PSSuite.csproj

@@ -0,0 +1,66 @@
+<?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>{CA033BAB-B214-4BF9-A903-85038AE666AA}</ProjectGuid>
+    <ProjectTypeGuids>{69878862-DA7D-4DC6-B0A1-50D8FAB4242F};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+    <OutputType>Exe</OutputType>
+    <RootNamespace>MonoGame.Samples.ChaseAndEvade.PSSuite</RootNamespace>
+    <AssemblyName>MonoGame.Samples.ChaseAndEvade.PSSuite</AssemblyName>
+  </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>true</Optimize>
+    <OutputPath>bin\Release</OutputPath>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+    <ConsolePause>false</ConsolePause>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="System" />
+    <Reference Include="System.Xml" />
+    <Reference Include="System.Core" />
+    <Reference Include="Sce.Pss.Core" />
+  </ItemGroup>
+  <Import Project="$(MSBuildExtensionsPath)\Sce\Sce.Pss.CSharp.targets" />
+  <ItemGroup>
+    <ProjectReference Include="..\..\MonoGame.Framework\MonoGame.Framework.PSSuite.csproj">
+      <Project>{EA26E76F-FDFE-4A8C-B5A3-C3B5761E28F9}</Project>
+      <Name>MonoGame.Framework.PSSuite</Name>
+    </ProjectReference>
+  </ItemGroup>
+  <ItemGroup>
+    <Folder Include="Content\" />
+  </ItemGroup>
+  <ItemGroup>
+    <Content Include="Content\cat.png">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
+    <Content Include="Content\mouse.png">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
+    <Content Include="Content\tank.png">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
+    <Content Include="Content\Arial.xnb">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="ChaseAndEvadeGame.cs" />
+    <Compile Include="Program.cs" />
+  </ItemGroup>
+</Project>

+ 1 - 1
Draw2D/Game1.cs

@@ -36,7 +36,7 @@ namespace Microsoft.Xna.Samples.Draw2D
 			Content.RootDirectory = "Content";
 			
 			graphics.PreferMultiSampling = true;
-#if ANDROID || IPHONE
+#if ANDROID || IPHONE || PSS
 			graphics.IsFullScreen = true;
 #else
 			graphics.IsFullScreen = false;

+ 68 - 0
Draw2D/MonoGame.Samples.Draw2D.PSSuite.csproj

@@ -0,0 +1,68 @@
+<?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>{D46978DF-F83C-45A1-80CA-A9B578607B77}</ProjectGuid>
+    <ProjectTypeGuids>{69878862-DA7D-4DC6-B0A1-50D8FAB4242F};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+    <OutputType>Exe</OutputType>
+    <RootNamespace>MonoGame.Samples.Draw2D.PSSuite</RootNamespace>
+    <AssemblyName>MonoGame.Samples.Draw2D.PSSuite</AssemblyName>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug</OutputPath>
+    <DefineConstants>DEBUG;PSS</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+    <ConsolePause>false</ConsolePause>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>none</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release</OutputPath>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+    <ConsolePause>false</ConsolePause>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="System" />
+    <Reference Include="System.Xml" />
+    <Reference Include="System.Core" />
+    <Reference Include="Sce.Pss.Core" />
+  </ItemGroup>
+  <Import Project="$(MSBuildExtensionsPath)\Sce\Sce.Pss.CSharp.targets" />
+  <ItemGroup>
+    <ProjectReference Include="..\..\MonoGame.Framework\MonoGame.Framework.PSSuite.csproj">
+      <Project>{EA26E76F-FDFE-4A8C-B5A3-C3B5761E28F9}</Project>
+      <Name>MonoGame.Framework.PSSuite</Name>
+    </ProjectReference>
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="FPSCounterComponent.cs" />
+    <Compile Include="Game1.cs" />
+    <Compile Include="main.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <Folder Include="Content\" />
+  </ItemGroup>
+  <ItemGroup>
+    <Content Include="Content\monogameicon.png">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
+    <Content Include="Content\monogameicon48x48.png">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
+    <Content Include="Content\purpleBall.xnb">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
+    <Content Include="Content\spriteFont1.xnb">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
+    <Content Include="app.cfg" />
+  </ItemGroup>
+</Project>

+ 8 - 0
Draw2D/app.cfg

@@ -0,0 +1,8 @@
+memory:
+    resource_heap_size : 16384
+    managed_heap_size : 16384
+
+input:
+    gamepad : false
+    touch : false
+    motion : false

+ 44 - 0
MonoGame.Samples.PSSuite.sln

@@ -0,0 +1,44 @@
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MonoGame.Framework.PSSuite", "..\MonoGame.Framework\MonoGame.Framework.PSSuite.csproj", "{EA26E76F-FDFE-4A8C-B5A3-C3B5761E28F9}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lidgren.Network.PSSuite", "..\ThirdParty\Lidgren.Network\Lidgren.Network.PSSuite.csproj", "{167676EE-E2D5-440A-BB2B-EFBD02BC8493}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MonoGame.Samples.Draw2D.PSSuite", "Draw2D\MonoGame.Samples.Draw2D.PSSuite.csproj", "{D46978DF-F83C-45A1-80CA-A9B578607B77}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MonoGame.Samples.Aiming.PSSuite", "Aiming\MonoGame.Samples.Aiming.PSSuite.csproj", "{4465C957-DB01-4FE4-8ADE-A7A7CA2CD773}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MonoGame.Samples.ChaseAndEvade.PSSuite", "ChaseAndEvade\MonoGame.Samples.ChaseAndEvade.PSSuite.csproj", "{CA033BAB-B214-4BF9-A903-85038AE666AA}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{167676EE-E2D5-440A-BB2B-EFBD02BC8493}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{167676EE-E2D5-440A-BB2B-EFBD02BC8493}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{167676EE-E2D5-440A-BB2B-EFBD02BC8493}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{167676EE-E2D5-440A-BB2B-EFBD02BC8493}.Release|Any CPU.Build.0 = Release|Any CPU
+		{4465C957-DB01-4FE4-8ADE-A7A7CA2CD773}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{4465C957-DB01-4FE4-8ADE-A7A7CA2CD773}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{4465C957-DB01-4FE4-8ADE-A7A7CA2CD773}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{4465C957-DB01-4FE4-8ADE-A7A7CA2CD773}.Release|Any CPU.Build.0 = Release|Any CPU
+		{CA033BAB-B214-4BF9-A903-85038AE666AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{CA033BAB-B214-4BF9-A903-85038AE666AA}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{CA033BAB-B214-4BF9-A903-85038AE666AA}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{CA033BAB-B214-4BF9-A903-85038AE666AA}.Release|Any CPU.Build.0 = Release|Any CPU
+		{D46978DF-F83C-45A1-80CA-A9B578607B77}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{D46978DF-F83C-45A1-80CA-A9B578607B77}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{D46978DF-F83C-45A1-80CA-A9B578607B77}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{D46978DF-F83C-45A1-80CA-A9B578607B77}.Release|Any CPU.Build.0 = Release|Any CPU
+		{EA26E76F-FDFE-4A8C-B5A3-C3B5761E28F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{EA26E76F-FDFE-4A8C-B5A3-C3B5761E28F9}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{EA26E76F-FDFE-4A8C-B5A3-C3B5761E28F9}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{EA26E76F-FDFE-4A8C-B5A3-C3B5761E28F9}.Release|Any CPU.Build.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(MonoDevelopProperties) = preSolution
+		StartupItem = Draw2D\MonoGame.Samples.Draw2D.PSSuite.csproj
+	EndGlobalSection
+EndGlobal