Oh my god
This commit is contained in:
@@ -14,14 +14,14 @@ namespace DepthsBelow
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// This is the main type for your game
|
/// This is the main type for your game
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class Game1 : Microsoft.Xna.Framework.Game
|
public class Core : Microsoft.Xna.Framework.Game
|
||||||
{
|
{
|
||||||
GraphicsDeviceManager graphics;
|
GraphicsDeviceManager graphics;
|
||||||
SpriteBatch spriteBatch;
|
SpriteBatch spriteBatch;
|
||||||
|
|
||||||
Soldier soldier;
|
Soldier soldier;
|
||||||
|
|
||||||
public Game1()
|
public Core()
|
||||||
{
|
{
|
||||||
graphics = new GraphicsDeviceManager(this);
|
graphics = new GraphicsDeviceManager(this);
|
||||||
Content.RootDirectory = "Content";
|
Content.RootDirectory = "Content";
|
||||||
@@ -30,7 +30,6 @@ namespace DepthsBelow
|
|||||||
graphics.PreferredBackBufferHeight = 720;
|
graphics.PreferredBackBufferHeight = 720;
|
||||||
graphics.IsFullScreen = true;
|
graphics.IsFullScreen = true;
|
||||||
|
|
||||||
|
|
||||||
this.IsMouseVisible = true;
|
this.IsMouseVisible = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -10,7 +10,7 @@ namespace DepthsBelow
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
using (Game1 game = new Game1())
|
using (Core game = new Core())
|
||||||
{
|
{
|
||||||
game.Run();
|
game.Run();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,18 +12,18 @@ namespace DepthsBelow
|
|||||||
{
|
{
|
||||||
class Soldier : Entity
|
class Soldier : Entity
|
||||||
{
|
{
|
||||||
Game1 game;
|
Core game;
|
||||||
static Texture2D Texture;
|
static Texture2D Texture;
|
||||||
|
|
||||||
// Components
|
// Components
|
||||||
TransformComponent transform;
|
TransformComponent transform;
|
||||||
|
|
||||||
static public void LoadContent(Game1 game)
|
static public void LoadContent(Core game)
|
||||||
{
|
{
|
||||||
Texture = game.Content.Load<Texture2D>("images/soldier");
|
Texture = game.Content.Load<Texture2D>("images/soldier");
|
||||||
}
|
}
|
||||||
|
|
||||||
public Soldier(Game1 game)
|
public Soldier(Core game)
|
||||||
{
|
{
|
||||||
if (Texture == null)
|
if (Texture == null)
|
||||||
LoadContent(game);
|
LoadContent(game);
|
||||||
|
|||||||
Reference in New Issue
Block a user