2026-07-04 17:07:43 +03:00
|
|
|
#include "raylib.h"
|
|
|
|
|
#include "screen.h"
|
|
|
|
|
|
|
|
|
|
void DrawLevel00()
|
|
|
|
|
{
|
|
|
|
|
const int floorExtent = 25;
|
|
|
|
|
const float tileSize = 5.0f;
|
2026-07-05 12:42:34 +03:00
|
|
|
|
|
|
|
|
// Draw floor
|
2026-07-04 17:07:43 +03:00
|
|
|
for (int y = -floorExtent; y < floorExtent; y++) {
|
|
|
|
|
for (int x = -floorExtent; x < floorExtent; x++) {
|
|
|
|
|
if ((y & 1) ^ (x & 1)) {
|
|
|
|
|
DrawPlane((Vector3){ x*tileSize, 0.0f, y*tileSize}, (Vector2){ tileSize, tileSize }, LIGHTGRAY);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-05 12:42:34 +03:00
|
|
|
DrawPlane((Vector3){ 0.0f, 0.0f, 0.0f }, (Vector2){ 32.0f, 32.0f }, LIGHTGRAY); // Draw ground
|
|
|
|
|
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
|
2026-07-04 17:07:43 +03:00
|
|
|
}
|