예제 #1
0
파일: Flag.cs 프로젝트: yahyaguzide/daud
        public override void Init(World world)
        {
            base.Init(world);

            FlagGroup.Init(world);
            FlagGroup.ZIndex = 200;
            this.Group       = FlagGroup;
            Position         = world.RandomPosition();
        }
예제 #2
0
파일: Base.cs 프로젝트: yahyaguzide/daud
        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;
        }