public RailedMoveBlockPathRenderer(RailedMoveBlock zipMover) { base.Depth = 5000; block = zipMover; from = block.start + new Vector2(block.Width / 2f, block.Height / 2f); to = block.target + new Vector2(block.Width / 2f, block.Height / 2f); sparkAdd = (from - to).SafeNormalize(5f).Perpendicular(); float num = (from - to).Angle(); sparkDirFromA = num + (float)Math.PI / 8f; sparkDirFromB = num - (float)Math.PI / 8f; sparkDirToA = num + (float)Math.PI - (float)Math.PI / 8f; sparkDirToB = num + (float)Math.PI + (float)Math.PI / 8f; cog = GFX.Game["objects/zipmover/cog"]; }
public Border(RailedMoveBlock parent) { Parent = parent; base.Depth = 1; }