Esempio n. 1
0
        private void DrawMirrorCircle(MirrorCircleBlueprint c)
        {
            var x = c.X / 64;
            var y = c.Y / 64;

            SetMap(x - 0.5f, y, '(');
            SetMap(x + 0.0f, y, '#');
            SetMap(x + 0.5f, y, ')');
        }
Esempio n. 2
0
        public MirrorCircle(GDGameScreen scrn, MirrorCircleBlueprint 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));
        }
Esempio n. 3
0
        public MirrorCircle(GDGameScreen scrn, MirrorCircleBlueprint blueprint) : base(scrn, GDConstants.ORDER_GAME_WALL)
        {
            var pos = new FPoint(blueprint.X, blueprint.Y);

            _diameter   = blueprint.Diameter;
            _renderRect = FRectangle.CreateByCenter(pos, _diameter + 2 * MARGIN_TEX, _diameter + 2 * MARGIN_TEX);
            _tex        = _diameter < 96 ? Textures.TexMirrorCircleSmall : Textures.TexMirrorCircleBig;

            Position = pos;

            DrawingBoundingBox = _renderRect.Size;

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