public Menu() { positionHand = new Vector2(290, 300); this.menuActive = true; this.option = StateMenu.newGame; this.texture = new AnimatedTexture(3f, new Point(3, 5), new Point(0, 1), new Point(20, 20), 180); this.difficulty = false; this.optionDif = 0; }
public Enemy(Vector2 position, int type, int vehicle) { this.position = position; this.speed = 3f; this.type = type; this.vehicle = vehicle; this.textureAnimated = new AnimatedTexture(3f, new Point(3, 0), new Point(0, 0), new Point(56, 120), 180); }
public Car() { this.position = new Vector2(360, 320); this.textureAnimated = new AnimatedTexture(3f, new Point(3, 1), new Point(0, 0), new Point(56, 120), 180); this.millisecondsPerFrame = 30; this.timeSizeLastFrame = 0; this.drift = false; this.distanceDrift = 0; this.driftLeft = 0; this.crash = false; this.timeCrash = 0; this.pathCrash = new Vector2(0,0); }