|
|
@ -37,7 +37,7 @@ namespace SemiColinGames { |
|
|
|
Player player; |
|
|
|
World world; |
|
|
|
LinesOfSight linesOfSight; |
|
|
|
readonly Camera camera = new Camera(); |
|
|
|
Camera camera = new Camera(); |
|
|
|
|
|
|
|
public SneakGame() { |
|
|
|
graphics = new GraphicsDeviceManager(this) { |
|
|
@ -83,12 +83,16 @@ namespace SemiColinGames { |
|
|
|
base.LoadContent(); |
|
|
|
spriteBatch = new SpriteBatch(GraphicsDevice); |
|
|
|
font = Content.Load<SpriteFont>("font"); |
|
|
|
|
|
|
|
player = new Player(Content.Load<Texture2D>("Ninja_Female")); |
|
|
|
world = new World(Content.Load<Texture2D>("grassland"), Levels.ONE_ONE); |
|
|
|
linesOfSight = new LinesOfSight(GraphicsDevice); |
|
|
|
grasslandBg1 = Content.Load<Texture2D>("grassland_bg1"); |
|
|
|
grasslandBg2 = Content.Load<Texture2D>("grassland_bg2"); |
|
|
|
LoadLevel(); |
|
|
|
} |
|
|
|
|
|
|
|
private void LoadLevel() { |
|
|
|
camera = new Camera(); |
|
|
|
player = new Player(Content.Load<Texture2D>("Ninja_Female")); |
|
|
|
world = new World(Content.Load<Texture2D>("grassland"), Levels.ONE_ONE); |
|
|
|
} |
|
|
|
|
|
|
|
// Called once per game. Unloads all game content.
|
|
|
@ -116,6 +120,10 @@ namespace SemiColinGames { |
|
|
|
display.SetFullScreen(fullScreen); |
|
|
|
} |
|
|
|
|
|
|
|
if (input[0].Restart && !input[1].Restart) { |
|
|
|
LoadLevel(); |
|
|
|
} |
|
|
|
|
|
|
|
Debug.Clear(paused); |
|
|
|
if (input[0].Debug && !input[1].Debug) { |
|
|
|
Debug.Enabled = !Debug.Enabled; |
|
|
|