📌  相关文章
📜  从头开始平稳跳跃 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:42.192000             🧑  作者: 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)