|
|
@ -7,7 +7,7 @@ using System.Collections.Generic; |
|
|
|
|
|
|
|
namespace SemiColinGames { |
|
|
|
public class SneakGame : Game { |
|
|
|
GraphicsDeviceManager graphics; |
|
|
|
readonly GraphicsDeviceManager graphics; |
|
|
|
RenderTarget2D renderTarget; |
|
|
|
|
|
|
|
SpriteBatch spriteBatch; |
|
|
@ -16,15 +16,15 @@ namespace SemiColinGames { |
|
|
|
bool paused = false; |
|
|
|
IDisplay display; |
|
|
|
|
|
|
|
History<Input> input = new History<Input>(2); |
|
|
|
readonly History<Input> input = new History<Input>(2); |
|
|
|
|
|
|
|
FpsCounter fpsCounter = new FpsCounter(); |
|
|
|
readonly FpsCounter fpsCounter = new FpsCounter(); |
|
|
|
Texture2D grasslandBg1; |
|
|
|
Texture2D grasslandBg2; |
|
|
|
|
|
|
|
Player player; |
|
|
|
World world; |
|
|
|
Camera camera = new Camera(); |
|
|
|
readonly Camera camera = new Camera(); |
|
|
|
|
|
|
|
public SneakGame() { |
|
|
|
graphics = new GraphicsDeviceManager(this); |
|
|
|