Displays score and health
Exemplo n.º 1
0
        public void AddHealthTest()
        {
            GameInfo info = new GameInfo();
            info.Health += 1000;

            Assert.AreEqual(100, info.Health);

            info.Health -= 50;

            Assert.AreEqual(50, info.Health);
        }
Exemplo n.º 2
0
 public GameScreen()
 {
     background = new Background();
     Spaceship spaceship = new Spaceship();
     input = new InputManager();
     controller = new SpaceshipController(spaceship, input);
     random = new Random();
     gameObjectsManager = new GameObjectsManager(spaceship, random);
     hud = new GameInfo();
     gameObjectsManager.AddStartingCows();
 }