public Content_Manager(Game1 game_1) { this.game_1 = game_1; player_tex = game_1.Content.Load <Texture2D>(@"Image/Character/robot"); enemy_tex = game_1.Content.Load <Texture2D>(@"Image/Character/chomper_robot"); platform_tex = game_1.Content.Load <Texture2D>(@"Image/Tile/tile_test"); goal_tex = game_1.Content.Load <Texture2D>(@"Image/Item/flag"); power_up_tex = game_1.Content.Load <Texture2D>(@"Image/Item/robot_power_glove"); point_item_tex = game_1.Content.Load <Texture2D>(@"Image/Item/pink_battery"); jump_boost_tex = game_1.Content.Load <Texture2D>(@"Image/Item/rocket_boots"); trampoline_tex = game_1.Content.Load <Texture2D>(@"Image/Item/trampoline"); ladder_tex = game_1.Content.Load <Texture2D>(@"Image/Item/ladder"); particle_textures.Add(game_1.Content.Load <Texture2D>(@"Image/Particle/circle")); hud_font = game_1.Content.Load <SpriteFont>(@"Font/hud_font"); gets_point = game_1.Content.Load <SoundEffect>(@"Sound/eat_candy"); destroy_enemy = game_1.Content.Load <SoundEffect>(@"Sound/hit"); particle_engine = new Particle_engine(particle_textures, Vector2.Zero); }
public void Add_particel_engine(Tower tower) { Particle_engine particle_engine = new Particle_engine(particle_textures, Vector2.Zero); particle_engine.active = true; particle_engine.emitter_location = new Vector2(tower.Center.X, tower.Center.Y); particel_engines.Add(particle_engine); }