Example #1
0
        public override void Draw(GraphicsDevice graphics)
        {
            int drawX = (int)Math.Round(position.X) - game.IntCameraX - 16;
            int drawY = (int)Math.Round(position.Y) - game.IntCameraY - 16;

            graphics.DrawImageAddFlipRotate90(GameImage.PlayerBullet, 32, 32, 4, animation, drawX, drawY, flipRotate, 255, 255, 255);
        }
Example #2
0
        public override void Draw(GraphicsDevice graphics)
        {
            int drawX = (int)Math.Round(position.X) - game.IntCameraX - 64;
            int drawY = (int)Math.Round(position.Y) - game.IntCameraY - 64;

            graphics.DrawImageAddFlipRotate90(GameImage.BigExplosion, 128, 128, animation / 2 / 4, animation / 2 % 4, drawX, drawY, flipRotate, 255, 255, 255);
        }
Example #3
0
        public override void Draw(GraphicsDevice graphics)
        {
            int drawX = (int)Math.Round(position.X) + game.IntBackgroundX;
            int drawY = (int)Math.Round(position.Y) + game.IntBackgroundY;

            if (big)
            {
                if (!exploding)
                {
                    graphics.DrawImageAdd(GameImage.EnemyBullet, 32, 32, 1, 0, drawX - 16, drawY - 16, 255, GetRed(), GetGreen(), GetBlue());
                }
                else
                {
                    if (!flip)
                    {
                        graphics.DrawImageAdd(GameImage.BigHanabi, 256, 256, animation / 2 / 4, animation / 2 % 4, drawX - 128, drawY - 128, 255, GetRed(), GetGreen(), GetBlue());
                    }
                    else
                    {
                        graphics.DrawImageAddFlipRotate90(GameImage.BigHanabi, 256, 256, animation / 2 / 4, animation / 2 % 4, drawX - 128, drawY - 128, 1, GetRed(), GetGreen(), GetBlue());
                    }
                }
            }
            else
            {
                if (!exploding)
                {
                    graphics.DrawImageAdd(GameImage.EnemyBullet, 32, 32, 1, 1, drawX - 16, drawY - 16, 255, GetRed(), GetGreen(), GetBlue());
                }
                else
                {
                    if (!flip)
                    {
                        graphics.DrawImageAdd(GameImage.SmallHanabi, 128, 128, animation / 2 / 4, animation / 2 % 4, drawX - 64, drawY - 64, 255, GetRed(), GetGreen(), GetBlue());
                    }
                    else
                    {
                        graphics.DrawImageAddFlipRotate90(GameImage.SmallHanabi, 128, 128, animation / 2 / 4, animation / 2 % 4, drawX - 64, drawY - 64, 1, GetRed(), GetGreen(), GetBlue());
                    }
                }
            }
        }
Example #4
0
        public override void Draw(GraphicsDevice graphics)
        {
            int drawX = (int)Math.Round(position.X) + game.IntBackgroundX;
            int drawY = (int)Math.Round(position.Y) + game.IntBackgroundY;

            if (big)
            {
                if (!exploding)
                {
                    graphics.DrawImageAdd(GameImage.EnemyBullet, 32, 32, 1, 0, drawX - 16, drawY - 16, 255, GetRed(), GetGreen(), GetBlue());
                }
                else
                {
                    if (!flip)
                    {
                        graphics.DrawImageAdd(GameImage.BigHanabi, 256, 256, animation / 2 / 4, animation / 2 % 4, drawX - 128, drawY - 128, 255, GetRed(), GetGreen(), GetBlue());
                    }
                    else
                    {
                        graphics.DrawImageAddFlipRotate90(GameImage.BigHanabi, 256, 256, animation / 2 / 4, animation / 2 % 4, drawX - 128, drawY - 128, 1, GetRed(), GetGreen(), GetBlue());
                    }
                }
            }
            else
            {
                if (!exploding)
                {
                    graphics.DrawImageAdd(GameImage.EnemyBullet, 32, 32, 1, 1, drawX - 16, drawY - 16, 255, GetRed(), GetGreen(), GetBlue());
                }
                else
                {
                    if (!flip)
                    {
                        graphics.DrawImageAdd(GameImage.SmallHanabi, 128, 128, animation / 2 / 4, animation / 2 % 4, drawX - 64, drawY - 64, 255, GetRed(), GetGreen(), GetBlue());
                    }
                    else
                    {
                        graphics.DrawImageAddFlipRotate90(GameImage.SmallHanabi, 128, 128, animation / 2 / 4, animation / 2 % 4, drawX - 64, drawY - 64, 1, GetRed(), GetGreen(), GetBlue());
                    }
                }
            }
        }
Example #5
0
 public override void Draw(GraphicsDevice graphics)
 {
     int drawX = (int)Math.Round(position.X) - game.IntCameraX - 16;
     int drawY = (int)Math.Round(position.Y) - game.IntCameraY - 16;
     graphics.DrawImageAddFlipRotate90(GameImage.PlayerBullet, 32, 32, 4, animation, drawX, drawY, flipRotate, 255, 255, 255);
 }