首页上一页 1 下一页尾页 1 条记录 1/1页
坦克大战玩家坦克类问题
发表在Java视频课程答疑
2019-08-15
悬赏:10 学分

是否精华
是
否
版块置顶:
是
否
public void uptward() {
if (direction != Direction.UP) {
setImage(upImage);
}
direction = Direction.RIGHT;
if (!hitWall(x, y - speed) && !hitTank(x, y - speed)) {
y -= speed;
moveToBorder();
}
}为什么向上移动,纵坐标却要递减呢