📜  如果相机碰到房间 gml 的边缘,则停止相机 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:27.995000             🧑  作者: Mango

代码示例1
x = clamp(x, camera_width/2, room_width-(camera_width/2);
y = clamp(y, camera_height/2, room_height-(camera_height/2);
var vn = matrix_build_lookat(x, y, -10, x, y, 0, 0, 1, 0);