mirror of
https://github.com/thepigeongenerator/tetris_clone.git
synced 2025-12-17 14:05:45 +01:00
write constants VX, VY, to make vector component selection more readable
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user