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

This commit is contained in:
randolphburt 2014-09-01 22:27:07 +01:00
parent 58d1e07894
commit d8d681d665
2 changed files with 13 additions and 2 deletions

View File

@ -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>

View File

@ -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);