Example #1
0
        public override void Init(World world)
        {
            base.Init(world);

            FlagGroup.Init(world);
            FlagGroup.ZIndex = 200;
            this.Group       = FlagGroup;
            Position         = world.RandomPosition();
        }
Example #2
0
        public Base(CaptureTheFlag captureTheFlag, Vector2 position, Team team)
        {
            this.Team            = team;
            this.Position        = position;
            this.Sprite          = Sprites.ctf_base;
            this.AngularVelocity = SPEED_STOPPED;
            this.Size            = 200;
            this.CaptureTheFlag  = captureTheFlag;
            CausesCollisions     = true;

            this.BaseGroup = new ActorGroup();

            BaseGroup.Init(captureTheFlag.World);
            this.Group = BaseGroup;
        }