📜  如何从头开始顺利跳跃 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:59.798000             🧑  作者: Mango

代码示例1
Jumping smoothly in Scratch

when (up arrow) pressed
set [y velocity] to (20)
if  then 
    change y by (y velocity)
    repeat until 
        change y by (y velocity)
        change [y velocity] by (-1)
    set [y velocity] to ((y velocity)*(-1))
    change y by (y velocity)