Пример #1
0
 public Laser(Vector2 position, Vector2 direction, Color color,Rectangle levelBoundries)
 {
     m_Particles = new Particles(position, color, 40.0f, 10, 0.0f, new Vector2(), 10.0f, true, 500, 0, 2.1f, true);
     m_Position = position;
     m_Direction = direction;
     m_LevelBoundries = levelBoundries;
 }
Пример #2
0
        public Boss()
        {
            IsActive = false;

            Position = m_StartPos + m_Hidden;

            for (int i = 0; i < m_Particles.Length; i++)
            {
                m_Particles[i] = new Particles(new Vector2(), Color.Red, 20, 5, 0.0f, new Vector2(), 3.0f, true, 70, 5, 2, true);
                m_Particles[i].Stop = true;
            }

            m_BeamManager = new BeamManager(new Rectangle(0, 0, Level.getWidthOfArray() * 32, Level.getHeightOfArray() * 32), Color.DarkRed, Color.OrangeRed);
        }
Пример #3
0
        public Boss()
        {
            IsActive = false;

            Position = m_StartPos + m_Hidden;

            for (int i = 0; i < m_Particles.Length; i++)
            {
                m_Particles[i]      = new Particles(new Vector2(), Color.Red, 20, 5, 0.0f, new Vector2(), 3.0f, true, 70, 5, 2, true);
                m_Particles[i].Stop = true;
            }

            m_BeamManager = new BeamManager(new Rectangle(0, 0, Level.getWidthOfArray() * 32, Level.getHeightOfArray() * 32), Color.DarkRed, Color.OrangeRed);
        }
Пример #4
0
        public SinusoidalBeam(Rectangle boundries, Color[] color)
        {
            m_Boundries = boundries;

            for (int i = 0; i < m_CollisionRects.Length; i++)
            {
                m_CollisionRects[i] = new Rectangle(0, 0, 4, 4);
                m_Colors[i]         = color[i];
                m_Sin[i]            = new SinFunction();
            }

            for (int i = 0; i < m_Particles.Length; i++)
            {
                m_Particles[i] = new Particles(new Vector2(), color[i % 2], 15.0f, 5, 0.0f, new Vector2(0, 0), 5.0f, true, 70, 3, 3.0f);
            }
        }