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(); }
public HandleGame(Game game, Game1.HandleOptionDelegate handleOptionDelegate) : base(game, handleOptionDelegate) { }
static void Main() { using (var game = new Game1()) game.Run(); }
public ObjectHandler(Game game, Game1.HandleOptionDelegate handleOptionDelegate) { this.game = game; this.handleOptionDelegate = handleOptionDelegate; }