Ejemplo n.º 1
0
		public void Play(Environment map)
		{
			GameControl gf = new GameControl();
			Game game = new Game(map.Clone(), gf, Form, gf, gf);
			gf.Game = game;
			gf.Form = Form;
			gf.Dock = DockStyle.Fill;
			gf.Name = "LOVE";

			CharactersUi charactersUi = new CharactersUi() { map = map };
			charactersUi.Dock = DockStyle.Bottom;
			charactersUi.Form = this.Form;

			GameScreenControl gs = new GameScreenControl()
			{
				Form = Form,
				Dock = DockStyle.Fill,
				charactersUi = charactersUi,
				gameControl = gf
			};

			//game.FirstRun();
			Form.OpenControl(gs);
		}
Ejemplo n.º 2
0
 public GameLoop(Game game, GameScreenControl screenControl)
 {
     this.game          = game;
     this.screenControl = screenControl;
 }