Esempio n. 1
0
        public override void Initialize()
        {
            base.Initialize();
            Pos = new Vector2(WidthOfGame/2,HeightOfGame/2);
            AddFrames("BuruEnemy_1a_frame1");
            Origin = new Vector2(Frames[0].Width / 2f, Frames[0].Height / 2f);
            //Right Arm
            PluginVectRight = new Vector2(Frames[0].Width / 2f - 6, Frames[0].Height / 2f + 15);
            PluginRight = new Arm1ProtoRight(Game);
            PluginRight.Initialize();
            //            Game.Components.Add(Plugin);
            PluginRight.ReletivePos = PluginVectRight + Pos;
            PluginRight.ReletiveAngle = AngleInRad;

            //Left Arm
            PluginVectLeft = new Vector2(Frames[0].Width / 2f + 6, Frames[0].Height / 2f + 15);
            PluginLeft = new Arm1ProtoLeft(Game);
            PluginLeft.Initialize();
            //            Game.Components.Add(Plugin);
            PluginLeft.ReletivePos = PluginVectLeft + Pos;
            PluginLeft.ReletiveAngle = AngleInRad;

            AngleInDeg = 180;
        }
Esempio n. 2
0
        public override void Initialize()
        {
            base.Initialize();
            Pos = new Vector2(WidthOfGame / 2, HeightOfGame / 2);
            AddFrames("BuruEnemy_1a_frame1");
            Origin = new Vector2(Frames[0].Width / 2f, Frames[0].Height / 2f);
            //Right Arm
            PluginVectRight = new Vector2(Frames[0].Width / 2f - 6, Frames[0].Height / 2f + 15);
            PluginRight     = new Arm1ProtoRight(Game);
            PluginRight.Initialize();
            //            Game.Components.Add(Plugin);
            PluginRight.ReletivePos   = PluginVectRight + Pos;
            PluginRight.ReletiveAngle = AngleInRad;

            //Left Arm
            PluginVectLeft = new Vector2(Frames[0].Width / 2f + 6, Frames[0].Height / 2f + 15);
            PluginLeft     = new Arm1ProtoLeft(Game);
            PluginLeft.Initialize();
            //            Game.Components.Add(Plugin);
            PluginLeft.ReletivePos   = PluginVectLeft + Pos;
            PluginLeft.ReletiveAngle = AngleInRad;

            AngleInDeg = 180;
        }