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(); }
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(); }
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)); } }
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)); } }
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); }
override public void Draw() { DrawEntities.DrawHealth(_boundary.Position); }
public override void Draw() { DrawEntities.DrawSaw(BoundaryCircle.Center, rotation); }
public override void DrawNormal() { DrawEntities.DrawPlayerTurretNormal(Boundary, _rotation, _kick); }
public void Draw() { DrawEntities.DrawMechDefault(boundary.Position, _face); }
override public void Draw() { DrawEntities.DrawGear(_boundary.Origin, _size); }
public void DrawNormal() { DrawEntities.DrawCrateNormal(Boundary.Position); }
public void Draw(Player player) { DrawEntities.DrawAircraft(player.Boundary, _rotation); }
public override void Draw() { DrawEntities.DrawAircraft(Boundary, 0f); }
override public void Draw() { DrawEntities.DrawShield(_boundary.Position); }
public void Draw(Player player) { DrawEntities.DrawMech(player.Boundary, RotLeg, WalkingVisible, player.Velocity, player.Resolver, WalkSin, FacingLegs, FacingCab); }
public void Draw() { DrawEntities.DrawTrigger(Position, On, _type); }
public void Draw() { DrawEntities.DrawBuddyDefault(Boundary.Position); }
public void Draw() { DrawEntities.DrawCrate(Boundary.Position); }