summaryrefslogtreecommitdiff
path: root/src/map.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2022-12-15 16:44:17 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2022-12-15 16:44:17 +0100
commit66b82a20506b53ce8dc5dde8e6ea0979a22610f0 (patch)
tree32b6e62c93e9f68a907f2095243e931614de1670 /src/map.c
parent8c086739e1344fb8789e89074dd962c5719ab030 (diff)
work
Diffstat (limited to 'src/map.c')
-rw-r--r--src/map.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map.c b/src/map.c
index bc8384f..1d805c5 100644
--- a/src/map.c
+++ b/src/map.c
@@ -193,25 +193,25 @@ void draw_grid(platform_window* window) {
int highest_point_bottomleft = tile.bottomleft;
bottomleft = (vec2f){render_x + xdiff_between_bottom_and_top, info.tile_height * y + info.tile_height - highest_point_bottomleft*info.px_raised_per_h};
- int r = 220;
+ color c = rgb(128, 64, 0);
if (highest_point_topleft > highest_point_bottomleft || highest_point_topright > highest_point_bottomright ||
highest_point_topleft > highest_point_bottomright || highest_point_topright > highest_point_bottomleft ||
- highest_point_topright > highest_point_topleft || highest_point_bottomright > highest_point_bottomleft) r = 180;
+ highest_point_topright > highest_point_topleft || highest_point_bottomright > highest_point_bottomleft) c = rgb(108, 64, 0);
if (highest_point_topleft < highest_point_bottomleft || highest_point_topright < highest_point_bottomright ||
- highest_point_topleft > highest_point_topright) r = 240;
+ highest_point_topleft > highest_point_topright) c = rgb(148, 64, 0);
renderer->render_quad(
topleft.x, topleft.y,
bottomleft.x, bottomleft.y,
bottomright.x, bottomright.y,
topright.x, topright.y,
- rgb(r,0,0));
+ c);
if (highest_point_topleft != highest_point_bottomright && highest_point_bottomleft == highest_point_topright) {
if (highest_point_bottomleft < highest_point_topleft || highest_point_bottomleft < highest_point_bottomright) {
renderer->render_tri(topleft.x, topleft.y,
bottomleft.x, bottomleft.y,
- bottomright.x, bottomright.y, rgb(180,0,0));
+ bottomright.x, bottomright.y, rgb(108, 64, 0));
}
renderer->render_line(topleft.x, topleft.y, bottomright.x, bottomright.y, 1, rgb(0,0,255)); // diag
}