eastern-flames/eastern flames/objects/ARTICULATOR/Draw_72.gml

47 lines
1.0 KiB
Plaintext
Raw Normal View History

2022-08-17 06:45:08 +00:00
var cam = camera_get_active();
global.projMat = camera_get_proj_mat(cam);
global.viewMat = camera_get_view_mat(cam);
setCam();
2022-08-15 04:06:41 +00:00
var i, j, k;
2022-08-15 02:35:57 +00:00
for (i=0; i<array_length(global.map); i++) {
for (j=0; j<array_length(global.map[i]); j++) {
2022-08-15 04:06:41 +00:00
draw_set_color(c_white);
2022-08-15 02:35:57 +00:00
draw_rectangle(
i*global.tilesize.x,
j*global.tilesize.y,
(i+1)*global.tilesize.x,
(j+1)*global.tilesize.y, false
);
2022-08-15 04:06:41 +00:00
for (k=0; k<array_length(global.map[i][j].overlays); k++) {
draw_set_color(global.map[i][j].overlays[k]);
draw_set_alpha(.4);
draw_rectangle(
i*global.tilesize.x,
j*global.tilesize.y,
(i+1)*global.tilesize.x,
(j+1)*global.tilesize.y, false
);
draw_set_alpha(1);
}
2022-08-15 02:35:57 +00:00
}
}
draw_set_color(c_black);
2022-08-17 06:45:08 +00:00
2022-08-15 02:35:57 +00:00
var i, j;
for (i=0; i<array_length(global.map); i++) {
for (j=0; j<array_length(global.map[i]); j++) {
draw_rectangle(
i*global.tilesize.x,
j*global.tilesize.y,
(i+1)*global.tilesize.x-1,
(j+1)*global.tilesize.y-1, true
);
}
2022-08-17 06:45:08 +00:00
}
//matrix_get(matrix_
var a = c_2dto3d(mouse_x,mouse_y);
2022-08-19 01:03:51 +00:00
draw_circle(a.x,a.y,2,false);
drawModels();