Переглянути джерело

Update MonoGame windows 8 store example app to run the raptor IK animation.

randolphburt 11 роки тому
батько
коміт
d8d681d665

+ 11 - 0
spine-monogame/windows8-store/example/spine-monogame-example.csproj

@@ -145,6 +145,9 @@
     <Content Include="..\..\..\spine-xna\example\data\goblins-ffd.json">
       <Link>Assets\goblins-ffd.json</Link>
     </Content>
+    <Content Include="..\..\..\spine-xna\example\data\raptor.png">
+      <Link>Assets\raptor.png</Link>
+    </Content>
     <Content Include="..\..\..\spine-xna\example\data\spineboy.atlas">
       <Link>Assets\spineboy.atlas</Link>
     </Content>
@@ -173,6 +176,14 @@
       <Name>SpineMonogameWindows8Store</Name>
     </ProjectReference>
   </ItemGroup>
+  <ItemGroup>
+    <Content Include="..\..\..\spine-xna\example\data\raptor.atlas">
+      <Link>Assets\raptor.atlas</Link>
+    </Content>
+    <Content Include="..\..\..\spine-xna\example\data\raptor.json">
+      <Link>Assets\raptor.json</Link>
+    </Content>
+  </ItemGroup>
   <PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '11.0' ">
     <VisualStudioVersion>11.0</VisualStudioVersion>
   </PropertyGroup>

+ 2 - 2
spine-xna/example/src/ExampleGame.cs

@@ -34,7 +34,6 @@ using System.Collections.Generic;
 using Microsoft.Xna.Framework;
 using Microsoft.Xna.Framework.Audio;
 using Microsoft.Xna.Framework.Content;
-using Microsoft.Xna.Framework.GamerServices;
 using Microsoft.Xna.Framework.Graphics;
 using Microsoft.Xna.Framework.Input;
 using Microsoft.Xna.Framework.Media;
@@ -124,9 +123,10 @@ namespace Spine {
 
 		protected override void Update (GameTime gameTime) {
 			// Allows the game to exit
+#if !WINDOWS_STOREAPP	
 			if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed)
 				this.Exit();
-
+#endif
 			// TODO: Add your update logic here
 
 			base.Update(gameTime);