comments, clang-format and screensize
This commit is contained in:
+10
-10
@@ -1,13 +1,13 @@
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include "raylib.h"
|
||||
#include "cube.h"
|
||||
#include "player.h"
|
||||
#include "raylib.h"
|
||||
#include "screen.h"
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
|
||||
Cube cube = {
|
||||
.initialized = false,
|
||||
.position = (Vector3){ 0.0f, 0.5f, 0.0f },
|
||||
.position = (Vector3){0.0f, 0.5f, 0.0f},
|
||||
.edge = 1.0f,
|
||||
.color = RED,
|
||||
.wiresColor = BLACK,
|
||||
@@ -32,16 +32,16 @@ void DrawLevel00(Player *player)
|
||||
{
|
||||
if ((y & 1) ^ (x & 1))
|
||||
{
|
||||
DrawPlane((Vector3){ x*tileSize, 0.0f, y*tileSize}, (Vector2){ tileSize, tileSize }, LIGHTGRAY);
|
||||
DrawPlane((Vector3){x * tileSize, 0.0f, y * tileSize}, (Vector2){tileSize, tileSize}, LIGHTGRAY);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
DrawCube((Vector3){ -16.0f, 2.5f, 0.0f }, 1.0f, 5.0f, 32.0f, BLUE); // Draw a blue wall
|
||||
DrawCube((Vector3){ 16.0f, 2.5f, 0.0f }, 1.0f, 5.0f, 32.0f, GREEN); // Draw a green wall
|
||||
DrawCube((Vector3){ 0.0f, 2.5f, 16.0f }, 32.0f, 5.0f, 1.0f, YELLOW); // Draw a yellow wall
|
||||
DrawCube((Vector3){-16.0f, 2.5f, 0.0f}, 1.0f, 5.0f, 32.0f, BLUE); // Draw a blue wall
|
||||
DrawCube((Vector3){16.0f, 2.5f, 0.0f}, 1.0f, 5.0f, 32.0f, GREEN); // Draw a green wall
|
||||
DrawCube((Vector3){0.0f, 2.5f, 16.0f}, 32.0f, 5.0f, 1.0f, YELLOW); // Draw a yellow wall
|
||||
|
||||
UpdateGrab(player, &cube); // Check if we grabbed a cube
|
||||
UpdateGrab(player, &cube); // Check if we grabbed a cube
|
||||
|
||||
MyDrawCube(&cube); // Draw a cube
|
||||
MyDrawCube(&cube); // Draw a cube
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user