20 lines
438 B
Plaintext
20 lines
438 B
Plaintext
/// @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;
|
|
|