/// <summary>
/// Constructor initializes everything.
/// </summary>
/// <param name="game"></param>
/// <param name="world"></param>
public PlayerObject(Game game, SpriteBatch givenSpriteBatch, WorldObject world)
: base(game)
{
World = world;
mySpriteBatch = givenSpriteBatch;
IsAlive = false;
Texture = Game.Content.Load<Texture2D>("bike");
Speed = new Vector2(Constants.NORMAL_SPEED, 0);
Score = new TraceRacer.Score(game);
//Position = new Vector2(Speed.X, -Texture.Height);
Position = new Vector2(100, -Texture.Height);
CurrentLine = world.getLine((int)Position.X);
}