mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-22 02:06:03 +08:00
Update MonoGame windows 8 store example app to run the raptor IK animation.
This commit is contained in:
parent
58d1e07894
commit
d8d681d665
@ -145,6 +145,9 @@
|
|||||||
<Content Include="..\..\..\spine-xna\example\data\goblins-ffd.json">
|
<Content Include="..\..\..\spine-xna\example\data\goblins-ffd.json">
|
||||||
<Link>Assets\goblins-ffd.json</Link>
|
<Link>Assets\goblins-ffd.json</Link>
|
||||||
</Content>
|
</Content>
|
||||||
|
<Content Include="..\..\..\spine-xna\example\data\raptor.png">
|
||||||
|
<Link>Assets\raptor.png</Link>
|
||||||
|
</Content>
|
||||||
<Content Include="..\..\..\spine-xna\example\data\spineboy.atlas">
|
<Content Include="..\..\..\spine-xna\example\data\spineboy.atlas">
|
||||||
<Link>Assets\spineboy.atlas</Link>
|
<Link>Assets\spineboy.atlas</Link>
|
||||||
</Content>
|
</Content>
|
||||||
@ -173,6 +176,14 @@
|
|||||||
<Name>SpineMonogameWindows8Store</Name>
|
<Name>SpineMonogameWindows8Store</Name>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</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)' < '11.0' ">
|
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '11.0' ">
|
||||||
<VisualStudioVersion>11.0</VisualStudioVersion>
|
<VisualStudioVersion>11.0</VisualStudioVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|||||||
@ -34,7 +34,6 @@ using System.Collections.Generic;
|
|||||||
using Microsoft.Xna.Framework;
|
using Microsoft.Xna.Framework;
|
||||||
using Microsoft.Xna.Framework.Audio;
|
using Microsoft.Xna.Framework.Audio;
|
||||||
using Microsoft.Xna.Framework.Content;
|
using Microsoft.Xna.Framework.Content;
|
||||||
using Microsoft.Xna.Framework.GamerServices;
|
|
||||||
using Microsoft.Xna.Framework.Graphics;
|
using Microsoft.Xna.Framework.Graphics;
|
||||||
using Microsoft.Xna.Framework.Input;
|
using Microsoft.Xna.Framework.Input;
|
||||||
using Microsoft.Xna.Framework.Media;
|
using Microsoft.Xna.Framework.Media;
|
||||||
@ -124,9 +123,10 @@ namespace Spine {
|
|||||||
|
|
||||||
protected override void Update (GameTime gameTime) {
|
protected override void Update (GameTime gameTime) {
|
||||||
// Allows the game to exit
|
// Allows the game to exit
|
||||||
|
#if !WINDOWS_STOREAPP
|
||||||
if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed)
|
if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed)
|
||||||
this.Exit();
|
this.Exit();
|
||||||
|
#endif
|
||||||
// TODO: Add your update logic here
|
// TODO: Add your update logic here
|
||||||
|
|
||||||
base.Update(gameTime);
|
base.Update(gameTime);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user