Exemplo n.º 1
0
        public Editor()
        {
            InitializeComponent();

            _instance = this;

            _changeMade = false;

            _curGame = new Game();

            _newGame = new NewGame();

            _IO = new IO();

            _newMap = new NewMap();

            _globalFont = new SFML.Graphics.Font("Georgia.ttf");

            _block = new Texture("block.png");

            _projectDirectory = new ProjectDirectory();

            _mapViewFormList = new List<MapViewerForm>();

            _actorManager = new ActorManagerForm();

            _gameRunner = new GameRunner(_curGame);

            _viewSwitch = new ViewSwitch();

            _viewVariable = new ViewVariable();

            DisableTool();
        }
Exemplo n.º 2
0
        public GameRunner(Game game)
        {
            _instance = this;
            _curGame = game;

            //Initalization();
            //Run();
        }
Exemplo n.º 3
0
        Game _curGame; // The game that will be run

        #endregion Fields

        #region Constructors

        public GameRunner()
        {
            _instance = this;
            _curGame = null;
        }
Exemplo n.º 4
0
 private void debugToolStripMenuItem_Click(object sender, EventArgs e)
 {
     _gameRunner = new GameRunner(_curGame);
     _gameRunner.Run();
 }