Exemplo n.º 1
0
 public LevelEditor(Game game, LevelReader levelReader, Game1.HandleOptionDelegate handleOptionDelegate)
     : base(game, handleOptionDelegate)
 {
     this.levelReader = levelReader;
     EditorTileSize = Game1.TILE_SIZE / 2;
     camera = new Camera(EditorTileSize * 45, EditorTileSize, 1);
     cursortex = game.Content.Load<Texture2D>(@"cursor");
     cursor = new Cursor(cursortex, new Vector2(gameAreaStartPos.X, gameAreaStartPos.Y), EditorTileSize);
     LoadContent();
 }
Exemplo n.º 2
0
 public HandleGame(Game game, Game1.HandleOptionDelegate handleOptionDelegate)
     : base(game, handleOptionDelegate)
 {
 }
Exemplo n.º 3
0
 static void Main()
 {
     using (var game = new Game1())
         game.Run();
 }
 public ObjectHandler(Game game, Game1.HandleOptionDelegate handleOptionDelegate)
 {
     this.game = game;
     this.handleOptionDelegate = handleOptionDelegate;
 }