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

35 lines
840 B
Plaintext
Raw Normal View History

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);
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
);
}
}