public FrmGame() { InitializeComponent(); var game = new Game(this.CreateGraphics(), "asd", new Point(50, 0)); game.Start(); }
public SlaugtherDungeonGame(Graphics g, Size gameSize) { gameWorld = new GameWorld(@"C:\Users\54430\Google Drev\level1.txt"); game = new Game(g, gameWorld, gameSize); game.Draw += game_Draw; game.OutOfVision += game_OutOfVision; }
private void Form1_Load(object sender, EventArgs e) { var game = new Game(this.CreateGraphics()); game.Start(); }