write constants VX, VY, to make vector component selection more readable

This commit is contained in:
2025-06-26 11:48:15 +02:00
parent 390ca02172
commit 0f4c9411b0
3 changed files with 11 additions and 8 deletions

View File

@@ -85,7 +85,7 @@ static void draw_shape(u8 const id, i8vec2 pos) {
for (int8_t x = 0; x < SHAPE_WIDTH; x++)
if (shape_is_set(shape_row, x))
draw_block(rend, pos[0] + x, pos[1] + y);
draw_block(rend, pos[VX] + x, pos[VY] + y);
}
}