Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 private void GameForm_MouseClick(object sender, MouseEventArgs e)
 {
     this.BackgroundImage.Dispose();
     this.BackgroundImage = BitmapController.MergeBitmaps(GameMap.CreateNewMap(), RocketList.CreateNewRockets());
 }
Ejemplo n.º 3
0
 private void GameForm_Load(object sender, EventArgs e)
 {
     this.BackgroundImage = BitmapController.MergeBitmaps(GameMap.CreateNewMap(), RocketList.CreateNewRockets());
 }