你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
没有找到相关结果
ymsdandan
赞同来自: l13273866189
wudi199553
l13273866189
赞同来自:
该问题目前已经被锁定, 无法添加新回复
4 个回复
ymsdandan
赞同来自: l13273866189
wudi199553
赞同来自: l13273866189
l13273866189
赞同来自:
this.ball.x -= this.vx;
this.ball.y += this.vy;
console.log("111111");
this.vy *= 0.99;
this.vy += 0.25;
console.log("222222");
if (this.ball.y + this.vy >= this.stageHeight ||this.ball.y + this.vy <= 0) {
this.vy = -this.vy;
}
if (this.ball.x + this.vx >= this.stageWidth ||this.ball.x + this.vx <= 0) {
this.vx = -this.vx;
}
l13273866189
赞同来自: