58 lines
1.5 KiB
C#
58 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using ANX.Framework;
|
|
using ANX.Framework.Content;
|
|
using ANX.Framework.Graphics;
|
|
using ANX.Framework.Input;
|
|
|
|
namespace Kinect
|
|
{
|
|
public class Game1 : ANX.Framework.Game
|
|
{
|
|
GraphicsDeviceManager graphics;
|
|
SpriteBatch spriteBatch;
|
|
|
|
public Game1()
|
|
: base("DirectX10", "Kinect")
|
|
{
|
|
graphics = new GraphicsDeviceManager(this);
|
|
Content.RootDirectory = "SampleContent";
|
|
}
|
|
|
|
protected override void Initialize()
|
|
{
|
|
// TODO: Fügen Sie Ihre Initialisierungslogik hier hinzu
|
|
|
|
base.Initialize();
|
|
}
|
|
|
|
protected override void LoadContent()
|
|
{
|
|
spriteBatch = new SpriteBatch(GraphicsDevice);
|
|
|
|
// TODO: Verwenden Sie this.Content, um Ihren Spiel-Inhalt hier zu laden
|
|
}
|
|
|
|
protected override void Update(GameTime gameTime)
|
|
{
|
|
//TODO: reactivate
|
|
//if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed)
|
|
// this.Exit();
|
|
|
|
// TODO: Fügen Sie Ihre Aktualisierungslogik hier hinzu
|
|
|
|
base.Update(gameTime);
|
|
}
|
|
|
|
protected override void Draw(GameTime gameTime)
|
|
{
|
|
GraphicsDevice.Clear(Color.Black);
|
|
|
|
// TODO: Fügen Sie Ihren Zeichnungscode hier hinzu
|
|
|
|
base.Draw(gameTime);
|
|
}
|
|
}
|
|
}
|