Ejemplo n.º 1
0
        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>();
        }
Ejemplo n.º 2
0
 public GameScreenBase(PixelEaterGame game)
 {
     this.game = game;
 }
Ejemplo n.º 3
0
 public GameOverScreen(PixelEaterGame game) : base(game)
 {
     this.gameoverTextPosition = new Vector2(100, 100);
     this.scoreTextPosition    = new Vector2(100, 140);
 }
Ejemplo n.º 4
0
 public WelcomeScreen(PixelEaterGame game) : base(game)
 {
 }