public Monster(Player player, World world) : base(new Vector2(0, world.Floor), new Vector2(200, 200), 0.0f, Color.White, getTexture(), Animation.getAnimation(getTexture()), getShapes()) { this.player = player; this.world = world; LayerDepth = 0.09f; Animation.Reverse = true; Animation.Stick = true; frameCount = Animation.getFrameCount(0); }
private void setVariables(int level) { switch (level) { case 0: worldLength = 20; Floor = Game1.height; horizontalVel = 6; player = new Player(new Vector2(100f, Game1.height / 2f), DeviceManager, this); birds = new BirdGenerator(this, 6000f, horizontalVel); fishes = new FishGenerator(this, 4000f); break; case 1: worldLength = 30; Floor = Game1.height; horizontalVel = 6; player = new Player(new Vector2(100f, Game1.height / 2f), DeviceManager, this); birds = new BirdGenerator(this, 3000f, horizontalVel); fishes = new FishGenerator(this, 1000f); break; case 2: worldLength = 50; Floor = Game1.height; horizontalVel = 6; player = new Player(new Vector2(100f, Game1.height / 2f), DeviceManager, this); birds = new BirdGenerator(this, 2000f, horizontalVel); fishes = new FishGenerator(this, 600f); break; default: break; } }