public Explosion(Vector3 position, GraphicsDevice gDevice, ContentManager Content) { graphicsDevice = gDevice; Position = position; Texture2D texture = Content.Load<Texture2D>("Particles/fire"); billboardEngine = new BillboardEngine(5, graphicsDevice); billboardEngine.Effect.Texture = texture; particleEffect = new ParticleEffect(10000, graphicsDevice, texture, Color.Goldenrod, Color.DarkMagenta, 1.0f); particleEffect.VelocityScaling = 7.0f; }
public Bullet(ContentManager Content, GraphicsDevice graphicsDevice) { active = false; fromPlayer = false; position = Vector3.Zero; direction = Vector3.Zero; speed = 0; distance = 0; maxDist = 0; strength = 1; type = 0; mirror = false; waveTime = new TimeSpan(0); element = Constants.ELM_NIL; bulletOb = new ModelObject(Content.Load <Model>("cube_rounded")); Texture2D texture = Content.Load <Texture2D>("Particles/fire"); particleEffect = new ParticleEffect(10000, graphicsDevice, texture, Color.Gold, Color.Crimson, 0.2f); particleEffect.VelocityScaling = 8.0f; gd = graphicsDevice; }
public Bullet(ContentManager Content, GraphicsDevice graphicsDevice) { active = false; fromPlayer = false; position = Vector3.Zero; direction = Vector3.Zero; speed = 0; distance = 0; maxDist = 0; strength = 1; type = 0; mirror = false; waveTime = new TimeSpan(0); element = Constants.ELM_NIL; bulletOb = new ModelObject(Content.Load<Model>("cube_rounded")); Texture2D texture = Content.Load<Texture2D>("Particles/fire"); particleEffect = new ParticleEffect(10000, graphicsDevice, texture, Color.Gold, Color.Crimson, 0.2f); particleEffect.VelocityScaling = 8.0f; gd = graphicsDevice; }