Esempio n. 1
0
        public override void Draw()
        {
            Effects.ColorEffect(new Vector4(1f, Tint, Tint, 1f));

            DrawEntities.DrawZombie(WalkingVisible, _resolver, RotationBody, Boundary, RotationLeg, Velocity);

            Game1.EffectBaseColor.CurrentTechnique.Passes[0].Apply();
        }
Esempio n. 2
0
        public override void Draw()
        {
            DrawEntities.DrawPlayerTurret(Boundary, _rotation, _kick);

            Effects.ColorEffect(new Vector4(1f, 1f, 1f, _muzzleAlpha));
            Game1.SpriteBatchGlobal.Draw(Game1.muzzleSimple, Barrel, scale: new Vector2(1), origin: new Vector2(0, 19f), rotation: _rotation);
            Game1.EffectBaseColor.CurrentTechnique.Passes[0].Apply();
        }
Esempio n. 3
0
        public void Draw(Player player)
        {
            DrawEntities.DrawBuddy(player.Boundary, RotationBody, RotLeg, WalkingVisible, player.VestOn, player.Velocity, player.Resolver);

            if (player.ControlsActive == true && player.VestOn == true && player.Carry == null)
            {
                player.CurrentWeaponObject.Draw(new LineSegmentF(player.WeaponOrigin, ShootCalc.RayBarrel.Start + ShootCalc.RayBarrel.NormalizedWithZeroSolution() * player.CurrentWeaponObject.GunBarrel));
            }
        }
Esempio n. 4
0
        public static void DrawEntity(AllEntitiesEditor type, Vector2 size, Vector2 position)
        {
            DrawRectangleBoundary.DrawWhite(new Rectangle((int)position.X, (int)position.Y, (int)size.X, (int)size.Y));

            if (type == AllEntitiesEditor.player)
            {
                DrawEntities.DrawBuddyDefault(new Vector2((int)position.X, (int)position.Y));
            }
            if (type == AllEntitiesEditor.mech)
            {
                DrawEntities.DrawMechDefault(new Vector2((int)position.X, (int)position.Y));
            }
        }
Esempio n. 5
0
        public override void Draw()
        {
            if (Velocity.X < 0)
            {
                MechDirectionLegs = mechFacingLegs.left;
                MechDirection     = mechFacingCabin.left;
            }
            if (Velocity.X > 0)
            {
                MechDirectionLegs = mechFacingLegs.right;
                MechDirection     = mechFacingCabin.right;
            }

            DrawEntities.DrawMech(Boundary, _rotLeg, WalkingVisible, Velocity, _resolver, _walkSin, MechDirectionLegs, MechDirection);
        }
Esempio n. 6
0
 override public void Draw()
 {
     DrawEntities.DrawHealth(_boundary.Position);
 }
Esempio n. 7
0
 public override void Draw()
 {
     DrawEntities.DrawSaw(BoundaryCircle.Center, rotation);
 }
Esempio n. 8
0
 public override void DrawNormal()
 {
     DrawEntities.DrawPlayerTurretNormal(Boundary, _rotation, _kick);
 }
Esempio n. 9
0
 public void Draw()
 {
     DrawEntities.DrawMechDefault(boundary.Position, _face);
 }
Esempio n. 10
0
 override public void Draw()
 {
     DrawEntities.DrawGear(_boundary.Origin, _size);
 }
Esempio n. 11
0
 public void DrawNormal()
 {
     DrawEntities.DrawCrateNormal(Boundary.Position);
 }
Esempio n. 12
0
 public void Draw(Player player)
 {
     DrawEntities.DrawAircraft(player.Boundary, _rotation);
 }
Esempio n. 13
0
 public override void Draw()
 {
     DrawEntities.DrawAircraft(Boundary, 0f);
 }
Esempio n. 14
0
 override public void Draw()
 {
     DrawEntities.DrawShield(_boundary.Position);
 }
Esempio n. 15
0
 public void Draw(Player player)
 {
     DrawEntities.DrawMech(player.Boundary, RotLeg, WalkingVisible, player.Velocity, player.Resolver, WalkSin, FacingLegs, FacingCab);
 }
Esempio n. 16
0
 public void Draw()
 {
     DrawEntities.DrawTrigger(Position, On, _type);
 }
Esempio n. 17
0
 public void Draw()
 {
     DrawEntities.DrawBuddyDefault(Boundary.Position);
 }
Esempio n. 18
0
 public void Draw()
 {
     DrawEntities.DrawCrate(Boundary.Position);
 }