public void AddHealthTest() { GameInfo info = new GameInfo(); info.Health += 1000; Assert.AreEqual(100, info.Health); info.Health -= 50; Assert.AreEqual(50, info.Health); }
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(); }