Esempio n. 1
0
 public GameScene(string goalText, float tipWidth, float tipHeight)
 {
     ArrowBoard = new ArrowBoard();
     ArrowBoard.Container.Position = new Point(675, 10);
     goal             = new SlidingMessage(goalText, tipWidth, tipHeight);
     goal.DroppedOut += () => IsGoalOnScreen = false;
     IsGoalOnScreen   = true;
 }
Esempio n. 2
0
 private void TriggerIntro()
 {
     spacePressed = true;
     timer        = new Timer();
     timer.Subscribe(1000, () =>
     {
         message = new SlidingMessage(firstTime ? "Mine happy!" : "Mine happy again!", 300, 100);
         Container.AddChild(message.Container);
     });
     timer.Subscribe(3000, () =>
     {
         campfire.BeginExtinguish();
         caveMan.NoticeChanges();
     });
     timer.Subscribe(4000, () =>
     {
         Container.RemoveChild(message.Container);
         message = new SlidingMessage("Uh-oh", 100, 100);
         Container.AddChild(message.Container);
     });
     timer.Subscribe(6000, () =>
     {
         campfire.FinishExtinguish();
         caveMan.BecomeSad();
     });
     timer.Subscribe(7000, () =>
     {
         Container.RemoveChild(message.Container);
         message = new SlidingMessage("Mine sad", 150, 100);
         Container.AddChild(message.Container);
     });
     timer.Subscribe(9000, () =>
     {
         firstTime = false;
         Open <MaterialCollectionScene>();
     });
 }