diff options
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,3 +1,5 @@ +#include <stdlib.h> + #include "level.h" #include "raylib.h" @@ -10,13 +12,19 @@ int main() { Level *level = SE_CreateLevel(30, 30); + // creating a dummy side + Side *side = malloc(sizeof(Side)); + side->a = (Point){1, 1}; + side->b = (Point){3, 4}; + level->sides[0] = side; + while (!WindowShouldClose()) { BeginDrawing(); ClearBackground(RAYWHITE); DrawText("hi world!", GetScreenWidth() / 2 - 16 * 4, GetScreenHeight() / 2 - 16, 32, BLACK); - SE_RenderLevel(level); + SE_RenderLevel(level, gridSize); // Drawing grid for (int x = 0; x <= level->width; x++) { |
