public MainWindow()
        {
            InitializeComponent();

            georgie          = new Georgie(this);
            score            = new Score(this);
            butler           = new Butler(this);
            outputCharactrer = new OutputCharactrer(this);

            gameTimer.Tick    += GameTimer_Tick;
            gameTimer.Interval = new TimeSpan(0, 0, 0, 0, 1000 / 60);
            gameTimer.Start();

            score.CreateLabels(canvas);

            CharaceterRectangle        = new Rectangle();
            CharaceterRectangle.Width  = 125;
            CharaceterRectangle.Height = 125;
            Canvas.SetTop(CharaceterRectangle, 125);
            canvas.Children.Add(CharaceterRectangle);

            CharacterSpeech = new Label();
            Canvas.SetLeft(CharacterSpeech, 500);
            Canvas.SetTop(CharacterSpeech, 30);
            canvas.Children.Add(CharacterSpeech);
        }
 public void CharacterDisplay()
 {
     if (mainWindow.SelectCharacter == 1)
     {
         georgie = new Georgie(mainWindow);
         georgie.CharacterDisplay();
     }
     else if (mainWindow.SelectCharacter == 2)
     {
         butler = new Butler(mainWindow);
         butler.CharacterDisplay();
     }
 }
Example #3
0
 public Score(Georgie x)
 {
     georgie = x;
 }