Exemplo n.º 1
0
        public void Draw(SpriteBatch spriteBatch)
        {
            // spriteBatch.Draw(playerTexture, position, null, Color.White, rotationAngle, origin, 1.0f, SpriteEffects.None, 0f);
            #region Bullet Draw
            foreach (Bullet b in bulletList)
            {
                b.Draw(spriteBatch);
            }
            spriteBatch.Draw(playerTexture, position, Color.White);
            #endregion

            #region Stage Draw
            if (circleStage.isVisible)
            {
                if (lastShift != "circle")
                {
                    SM.playShapeShift();
                }
                Primitives2D.DrawCircle(spriteBatch, stageOrigin, 450, 500, Color.White, 16);
                Primitives2D.DrawCircle(spriteBatch, stageOrigin, 450, 500, Color.Black, 8);
                lastShift = "circle";
            }
            else if (hexStage.isVisible)
            {
                if (lastShift != "hex")
                {
                    SM.playShapeShift();
                }
                Primitives2D.DrawCircle(spriteBatch, stageOrigin, 450, 6, Color.White, 16);
                Primitives2D.DrawCircle(spriteBatch, stageOrigin, 450, 6, Color.Black, 8);
                lastShift = "hex";
            }
            else if (heptStage.isVisible)
            {
                if (lastShift != "hept")
                {
                    SM.playShapeShift();
                }
                Primitives2D.DrawCircle(spriteBatch, stageOrigin, 450, 7, Color.White, 16);
                Primitives2D.DrawCircle(spriteBatch, stageOrigin, 450, 7, Color.Black, 8);
                lastShift = "hept";
            }
            else if (octStage.isVisible)
            {
                if (lastShift != "oct")
                {
                    SM.playShapeShift();
                }
                Primitives2D.DrawCircle(spriteBatch, stageOrigin, 450, 8, Color.White, 16);
                Primitives2D.DrawCircle(spriteBatch, stageOrigin, 450, 8, Color.Black, 8);
                lastShift = "oct";
            }
            #endregion
        }
Exemplo n.º 2
0
        protected override void Initialize()
        {
            backSpawn     = new Vector2(600, 600);
            midSpawn      = new Vector2(1500, 700);
            backTexture   = null;
            midTexture    = null;
            rotationAngle = 0;
            base.Initialize();
            SM.LoopInGame();
            stageOrigin = new Vector2(1728 / 2, 972 / 2);

            // Get Points stuff
            spriteBatch.Begin();
            circlePoints = Primitives2D.DrawCircle(spriteBatch, stageOrigin, 450, 50, Color.White, 8);
            hexPoints    = Primitives2D.DrawCircle(spriteBatch, stageOrigin, 450, 6, Color.White, 8);
            heptPoints   = Primitives2D.DrawCircle(spriteBatch, stageOrigin, 450, 7, Color.White, 8);
            octPoints    = Primitives2D.DrawCircle(spriteBatch, stageOrigin, 450, 8, Color.White, 8);
            spriteBatch.End();
            Health_Back  = new Texture2D(GraphicsDevice, 100, 20);
            Health_Front = new Texture2D(GraphicsDevice, 100, 20);
        }
Exemplo n.º 3
0
 public void Draw(SpriteBatch spriteBatch)
 {
     pointList = Primitives2D.DrawCircle(spriteBatch, origin, radius, sides, Color.White, thickness);
 }