Пример #1
0
        public VulnerabilityIndicator(Vector3 location, Shell.ShellColor vulnerability)
        {
            this.vulnerability = vulnerability;
            this.scale = new Vector2(0.2f, 0.2f);

            this.speed = new Vector2(0, 1f);

            this.location = new Vector2(location.X, location.Y);
            this.originalLocation = this.location;
            this.z = location.Z;
        }
Пример #2
0
        public PaintBomb(Shell shell, Point target)
        {
            this.scale = new Vector2(0.2f, 0.2f);
            this.speed = 4f;

            this.location = new Vector2(shell.GetDrawRectangle().Center.X, shell.GetDrawRectangle().Center.Y);
            this.z = shell.z - 0.001f;
            this.color = shell.color;

            this.target = new Vector2(target.X, target.Y);
        }