Ejemplo n.º 1
0
        public FusionRifle() : base()
        {
            itemID             = 1;
            guiItemID          = 1;
            worldItemTextureID = 2;
            entityName         = "Fusion Rifle";
            firePoint          = new Vector2(80, 1f);

            raycast.rayEvent.parameters.Add("Destroy", true);
            components.Add(new PointTowardsMouseComponent());
            emitter.AddParticle(new Systems.Particle(position, 1, 0, 1f, 0, 0, Color.White)
            {
                fadeRate     = .95f,
                maxDampening = 99,
                minDampening = 99,
                minSpeed     = .1f,
                minAngle     = 0,
                maxAngle     = 360,
                size         = 1f,
                minSize      = .01f,
                sizeRate     = .95f,
                maxSize      = 5
            });
            emitter.AddParticle(new Systems.Particle(position, 1, 0, 1f, 0, 0, Color.DarkGray)
            {
                fadeRate     = .85f,
                maxDampening = 99,
                minDampening = 99,
                minSpeed     = .1f,
                minAngle     = 0,
                maxAngle     = 360,
                size         = 1f,
                minSize      = .01f,
                sizeRate     = .95f,
                maxSize      = 5,
                fade         = .2f
            });

            int r = Game1.random.Next(0, 255);
            int g = Game1.random.Next(0, 255);
            int b = Game1.random.Next(0, 255);

            rainbow = Color.Red; //new Color(r, g, b);
        }
Ejemplo n.º 2
0
 public LaserRifle() : base()
 {
     itemID             = 0;
     guiItemID          = 0;
     worldItemTextureID = 1;
     entityName         = "Laser Rifle";
     firePoint          = new Vector2(65, -10);
     raycast            = new Raycast();
     raycast.rayEvent.parameters.Add("Destroy", true);
     components.Add(new PointTowardsMouseComponent());
     emitter.AddParticle(new Systems.Particle(position, 1, 0, 1f, 0, 0, Color.White)
     {
         fadeRate     = .95f,
         maxDampening = 99,
         minDampening = 99,
         minSpeed     = .01f,
         minAngle     = 0,
         maxAngle     = 360,
         size         = 1f,
         minSize      = .01f,
         sizeRate     = .95f,
         maxSize      = 5
     });
     emitter.AddParticle(new Systems.Particle(position, 1, 0, 1f, 0, 0, Color.DarkGray)
     {
         fadeRate     = .85f,
         maxDampening = 99,
         minDampening = 99,
         minSpeed     = .01f,
         minAngle     = 0,
         maxAngle     = 360,
         size         = 1f,
         minSize      = .01f,
         sizeRate     = .95f,
         maxSize      = 5,
         fade         = .2f
     });
 }