so_many_mars/objects/oCamera/Create_0.gml

20 lines
438 B
Plaintext
Raw Permalink Normal View History

2022-02-21 23:45:19 +00:00
/// @description Insert description here
// You can write your code in this editor
camera = camera_create();
var view_matrix = matrix_build_lookat(x, y, -10, x, y, 0, 0, 1, 0);
var projection_matrix = matrix_build_projection_ortho(1280, 720, 1, 10000000);
camera_set_view_mat(camera, view_matrix);
camera_set_proj_mat(camera, projection_matrix);
view_camera[0] = camera;
follow = oPlayer;
// target for easing.
xTo = x;
yTo = y;