예제 #1
0
 public Room(GraphicsDeviceManager graphics)
 {
     updateMethods = new List <Tuple <Action <GameTime>, int> >();
     drawMethods   = new List <Tuple <Action <SpriteBatch>, int> >();
     cameras       = new PermanantStates <Camera>();
     cameras.AddState("camera1", new Camera(graphics.GraphicsDevice.Viewport, Camera.CameraFocus.TopLeft));
 }
예제 #2
0
 public World(GraphicsDeviceManager graphics)
 {
     this.graphics = graphics;
     spriteBatch   = new SpriteBatch(graphics.GraphicsDevice);
     rooms         = new PermanantStates <Room>();
     rooms.AddState("game", new Room(graphics));
     state        = 0;
     finishedMove = false;
     gameMode     = 0;// 2;
     //currentMove = null;
 }