internal void Update(GameTime gameTime) { DeltaVelocity = input.GetDirection() * (float)gameTime.ElapsedGameTime.TotalSeconds * 100; Velocity += DeltaVelocity; Velocity += new Vector2(0, 1.6f * (float)gameTime.ElapsedGameTime.TotalSeconds); Position += Velocity * (float)gameTime.ElapsedGameTime.TotalSeconds; }
public Direction GetDirection() { return(input.GetDirection()); }