Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ float fadeTowards(float current, float target, float amount) {

void drawCube(SDL_Renderer *renderer, Cube cube) {
for (int f = 0; f < 5; f++) {
int orgCubeI = f * 4; // The way our cube is defined, a face has four cornes
int orgCubeI = f * 4; // The way our cube is defined, a face has four corners
int transCubeI = f * 5; // The way our transformed cube is defined, a face has 5 corners (last one connects back to the firt one)
for (int p = 0; p < 4; p++) {
Point point = cube[orgCubeI + p];
Expand Down Expand Up @@ -222,4 +222,4 @@ void drawGameOverText(SDL_Renderer *renderer) {
Message_rect.x = WIDTH / 2 - Message_rect.w / 2;
Message_rect.y = HEIGHT / 2 - Message_rect.h / 2 - 10;
SDL_RenderCopy(renderer, Message, NULL, &Message_rect);
}
}