Beispiel #1
0
 public void Inizialize(int height, int weight)
 {
     sounds       = new ControlSounds();
     gameTimer    = new GameTimer();
     score        = new Score(gameTimer);
     fishes       = new ControlFishes(view.arrayFish.Length, score);
     boulderLogic = new Boulder(fishes, sounds, view.arrayFish.Length, view.boulder.Margin, view.player.Margin, weight, height);
     view.SetForMuteButtonContext_unMuteImage();
     view.SetForAboutTheGameButtonContext_questionImage();
     fishes.Initialize(view.GetFishesThickness(), view.waterFrame.Margin, height - ((int)view.waterFrame.Margin.Bottom));
 }
Beispiel #2
0
 public MovementBoulder(Boulder boulderLogic, Thickness initialBoulderThickness, Thickness playerThickness, int mainWindowWidth, int mainWindowHeight)
 {
     this.boulderLogic            = boulderLogic;
     this.mainWindowWidth         = mainWindowWidth;
     this.mainWindowHeight        = mainWindowHeight;
     this.initialBoulderThickness = initialBoulderThickness;
     this.playerThickness         = playerThickness;
     step                     = 20;
     timerForBoulder          = new DispatcherTimer();
     timerForBoulder.Interval = new TimeSpan(0, 0, 0, 0, 1);
     timerForBoulder.Tick    += new EventHandler(TimerForBoulder_Content);
 }