up() 方法用于在游戏实体的垂直方向上移动,即沿着 y 轴方向向上移动。
up()
entity.up(distance)
distance
// 移动实体向上 50 个单位 entity.up(50); // 移动实体向上一个单位 entity.up();