Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 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);
 }