Give your object both a velocity and an acceleration. · If a key is held down, set the acceleration to a constant term, otherwise set it to zero. · In every frame ...
確定! 回上一頁