public MoveController(ActionContainer actions) { this.actions = actions; Speed = 1; PlayerMoves = new int[2]; Reset(); }
public Game(int shotCount = 10, int animalCount = 10, double gameSpeed = 5) { // Create levels new LevelOne(this, @"../../Images/background.jpg"); new LevelTwo(this, @"../../Images/background-stage-2.jpg"); new LevelFinished(this, @"../../Images/background-stage-gameover.jpg"); // Create states new UnitMoveLeftState("MovingLeft"); new UnitMoveRightState("MovingRight"); // Set game level SetLevel(LevelFactory.GetFirstLevel()); Actions = new ActionContainer(); ResetGameStats(); }