Esempio n. 1
0
        private void handlePhysics()
        {
            _gravity.y = _weight * 0.981f;
            _velocity.Multiply(0.95f);

            if (_invincibleTimer > 0)
            {
                this.color = 0xff0000;
                _invincibleTimer--;
            }
            else
            {
                this.color = 0xffffffff;
            }
        }