Ejemplo n.º 1
0
        private void DrawVoidCircle(VoidCircleBlueprint c)
        {
            var x = c.X / 64;
            var y = c.Y / 64;

            SetMap(x - 0.5f, y, '(');
            SetMap(x + 0.0f, y, 'X');
            SetMap(x + 0.5f, y, ')');
        }
Ejemplo n.º 2
0
        public VoidCircle(GDGameScreen scrn, VoidCircleBlueprint blueprint) : base(scrn, GDConstants.ORDER_GAME_WALL)
        {
            var pos = new FPoint(blueprint.X, blueprint.Y);

            _diameter = blueprint.Diameter;

            Position = pos;

            DrawingBoundingBox = new FSize(_diameter + 2 * MARGIN_TEX, _diameter + 2 * MARGIN_TEX);

            this.GDOwner().GDBackground.RegisterBlockedCircle(new FCircle(pos, _diameter / 2f));
        }