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