コード例 #1
0
ファイル: MovingObject.cs プロジェクト: Rosthouse/JumpNRun
        public MovingObject(string textureAsset, Vector2 position, float acceleration, float maxSpeed)
            : base(textureAsset, position)
        {
            this.acceleration = acceleration;
            this.maxSpeed = maxSpeed;

            this.timeStampList = new TimeStampList();
            createTimeStamp = true;

            soundEffectList = new SoundEffectList();
            movementVector = Vector3.Zero;
            previousMovement = movementVector;

            inputVector = Vector2.Zero;
            previousInput = inputVector;
        }
コード例 #2
0
ファイル: MovingObject.cs プロジェクト: Rosthouse/JumpNRun
 public void ClearTimeStamps(object sender, PausEventArgs e)
 {
     timeStampList = new TimeStampList();
     //TODO: Find a proper way to tell the object to make a timestamp
     CreateTimeStamp((float)e.time, this.Position);
 }