コード例 #1
0
        private void GetScoreData()
        {
            if (PlayerAgent.Player != null)
            {
                //get our data
                rm = PlayerAgent.Player.GetAgent<RockMeter>();

                baseScore = rm.Score;
            }
            timeOnLevel = Stage.ActiveStage.Time;
            killStreak = 0;
            skullToDraw = 0;
            bonusPoints = 0;
            lerpRate = 10000;
            int totScore = PlayerAgent.Player != null ? rm.GetTotalScore : 0;
            if(totScore > lerpRate * 5)
            {
                lerpRate = totScore / 5;
            }
            skullCounters = new Texture2D[4];
            statusSkulls = new Texture2D[5];
            checkForPerfect = true;
        }
コード例 #2
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        public override void LoadContent()
        {
            //moveList = new MoveList(Stage.Content.Load<Move[]>("MoveList"));
            //inputManager = new InputManager(moveList.LongestMoveLength);
            mainCharacter = PlayerAgent.Player;
            playerRockMeter = mainCharacter.GetAgent<RockMeter>();

            font = Stage.Content.Load<Microsoft.Xna.Framework.Graphics.SpriteFont>("DefaultFont");
            rand = new Random();
        }