예제 #1
0
 public FollowObj(FollowObj _follower)
 {
     location = new Rectangle();
     prevLocation = new Rectangle();
     follower = _follower;
 }
예제 #2
0
        protected override void Initialize()
        {
            gameState = new GameState();
            gameState = GameState.Title;
            orbitState = new OrbitState();
            orbitState = OrbitState.None;
            kbState = new KeyboardState();
            prevKBState = new KeyboardState();
            player = new Character();
            mechanics = new Mechanics();
            poles = new List<Poles>();
            walls = new List<Wall>();
            balloons = new List<Balloon>();
            goal = new Goal();
            images = new Dictionary<string, Texture2D>();
            sounds = new Dictionary<string, SoundEffect>();
            currentLevel = 1;
            mapMaker = null;
            levelScore = "";
            totalScore = "";
            balloonPop = 0;
            endScore = 0;
            getScore = new Scoring(); //Score object
            tail1 = new FollowObj(player);
            tail2 = new FollowObj(tail1);
            tail3 = new FollowObj(tail2);

            base.Initialize();
        }