mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +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">
|
||||
<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)' < '11.0' ">
|
||||
<VisualStudioVersion>11.0</VisualStudioVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user