private void GameEngine_Tick(object sender, EventArgs e) { this.BackgroundImage.Dispose(); this.BackgroundImage = BitmapController.MergeBitmaps(GameMap.UpdateMap(), RocketList.UpdateRockets()); //this.CreateGraphics().Clear(Color.Black); //this.CreateGraphics().DrawImageUnscaled(GameMap .UpdateMap (),0,0); //this.CreateGraphics().DrawImageUnscaled(RocketList.UpdateRockets (), 0, 0); GC.Collect(); }
private void GameForm_MouseClick(object sender, MouseEventArgs e) { this.BackgroundImage.Dispose(); this.BackgroundImage = BitmapController.MergeBitmaps(GameMap.CreateNewMap(), RocketList.CreateNewRockets()); }
private void GameForm_Load(object sender, EventArgs e) { this.BackgroundImage = BitmapController.MergeBitmaps(GameMap.CreateNewMap(), RocketList.CreateNewRockets()); }