| 赞 | 36 |
| VIP | |
| 好人卡 | |
| 积分 | 105 |
| 经验 | |
| 最后登录 | 2026-1-6 |
| 在线时间 | 463 小时 |
- 梦石
- 2
- 星屑
- 8479
- 在线时间
- 463 小时
- 注册时间
- 2021-12-4
- 回帖
- 486

|
发表于 2023-6-3 22:38:43
|
显示全部楼层
回帖奖励 +7 星屑
Spriteset_Base.prototype.updatePosition = function () {
const screen = $gameScreen, scale = screen.zoomScale();
this.scale.x = scale; this.scale.y = scale;
this.x = Math.round(-screen.zoomX() * (scale - 1));
this.y = Math.round(-screen.zoomY() * (scale - 1));
// 1号开关ON时,改为上下摇动
if ($gameSwitches.value(1)) this.y += Math.round(screen.shake());
else this.x += Math.round(screen.shake());
} |
|