|
@ -1,9 +1,8 @@ |
|
|
using Microsoft.Xna.Framework; |
|
|
using Microsoft.Xna.Framework; |
|
|
using Microsoft.Xna.Framework.Graphics; |
|
|
using Microsoft.Xna.Framework.Graphics; |
|
|
using Microsoft.Xna.Framework.Input; |
|
|
using Microsoft.Xna.Framework.Input; |
|
|
|
|
|
|
|
|
|
|
|
using MonoGame.Framework.Utilities; |
|
|
using System; |
|
|
using System; |
|
|
using System.Collections.Generic; |
|
|
|
|
|
|
|
|
|
|
|
namespace SemiColinGames { |
|
|
namespace SemiColinGames { |
|
|
public class SneakGame : Game { |
|
|
public class SneakGame : Game { |
|
@ -33,6 +32,8 @@ namespace SemiColinGames { |
|
|
Camera camera = new Camera(); |
|
|
Camera camera = new Camera(); |
|
|
|
|
|
|
|
|
public SneakGame() { |
|
|
public SneakGame() { |
|
|
|
|
|
Debug.WriteLine("MonoGame platform: " + PlatformInfo.MonoGamePlatform + |
|
|
|
|
|
" w/ graphics backend: " + PlatformInfo.GraphicsBackend); |
|
|
graphics = new GraphicsDeviceManager(this) { |
|
|
graphics = new GraphicsDeviceManager(this) { |
|
|
SynchronizeWithVerticalRetrace = true, |
|
|
SynchronizeWithVerticalRetrace = true, |
|
|
GraphicsProfile = GraphicsProfile.HiDef |
|
|
GraphicsProfile = GraphicsProfile.HiDef |
|
@ -69,9 +70,9 @@ namespace SemiColinGames { |
|
|
private void LoadLevel() { |
|
|
private void LoadLevel() { |
|
|
framesToSuppress = 2; |
|
|
framesToSuppress = 2; |
|
|
camera = new Camera(); |
|
|
camera = new Camera(); |
|
|
player = new Player(Content.Load<Texture2D>("sprites/ccg/ninja_female")); |
|
|
|
|
|
world = new World(Content.Load<Texture2D>("tiles/anokolisa/grassland"), Levels.ONE_ONE); |
|
|
|
|
|
scene = new Scene(GraphicsDevice, camera, Content); |
|
|
|
|
|
|
|
|
player = new Player(Content); |
|
|
|
|
|
world = new World(Content, Levels.ONE_ONE); |
|
|
|
|
|
scene = new Scene(Content, GraphicsDevice, camera); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Called once per game. Unloads all game content.
|
|
|
// Called once per game. Unloads all game content.
|
|
|