#include "raylib.h" #include "screen.h" void DrawLevel00() { const int floorExtent = 25; const float tileSize = 5.0f; 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); } } } const Vector3 towerSize = (Vector3){ 16.0f, 32.0f, 16.0f }; Vector3 towerPos = (Vector3){ 16.0f, 16.0f, 16.0f }; DrawCubeV(towerPos, towerSize, RED); DrawCubeWiresV(towerPos, towerSize, BLACK); towerPos.x *= -1; DrawCubeV(towerPos, towerSize, RED); DrawCubeWiresV(towerPos, towerSize, BLACK); towerPos.z *= -1; DrawCubeV(towerPos, towerSize, RED); DrawCubeWiresV(towerPos, towerSize, BLACK); towerPos.x *= -1; DrawCubeV(towerPos, towerSize, RED); DrawCubeWiresV(towerPos, towerSize, BLACK); }