- /// oLight Step Event
- // 确保结构体存在 (防止报错)
- if (light_struct != undefined) {
- light_struct.x = x;
- light_struct.y = y;
-
- // 如果你想做“呼吸灯”效果,可以在这里动态修改 alpha
- // light_struct.alpha = 0.8 + sin(current_time / 200) * 0.2;
- }
- x = global.player.x
- y = global.player.y-64
|