コード例 #1
0
        public override void Update()
        {
            _colliderController.Update();

            LookAround();
            Movement();
            Jump();
            UpdateVelocity();
            Gravity();
            ClawShotGun.Update();

            CreateCollider();
            CreateWorld();
        }
コード例 #2
0
        public Player(Level level, Vector3 position, GameScreen screen)
            : base(level)
        {
            _screen             = screen;
            _texture            = TextureFactory.FromColor(Color.DarkGray);
            _position           = position;
            _colliderController = new ColliderController(this, level);
            ClawShotGun         = new ClawShotGun(level, this);

            IsVisible = false;
            CreateCollider();

            Pitch = -0.4f;
        }