Displays score and health
예제 #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);
        }
예제 #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();
 }