public GameplayScreen(PixelEaterGame game, Action onTimesUpAction) : base(game)
        {
            this.onTimesUpAction   = onTimesUpAction;
            this.scoreTextPosition = new Vector2(this.frameSize, 10);
            this.timerTextPosition = new Vector2(this.frameSize, 40);

            this.arena         = new Arena(frameSize);
            this.eater         = new Eater(this.arena);
            this.timeCounter   = new TimeCounter(this.initialSecondsNumber, onTimesUpAction);
            this.foodFactory   = new FoodFactory(this.arena);
            this.availableFood = new List <Food>();
        }
Exemple #2
0
 public GameScreenBase(PixelEaterGame game)
 {
     this.game = game;
 }
 public GameOverScreen(PixelEaterGame game) : base(game)
 {
     this.gameoverTextPosition = new Vector2(100, 100);
     this.scoreTextPosition    = new Vector2(100, 140);
 }
 public WelcomeScreen(PixelEaterGame game) : base(game)
 {
 }