diff options
| author | Abdellah El Morabit <nsrddyn@gmail.com> | 2025-01-17 21:42:02 +0100 |
|---|---|---|
| committer | Abdellah El Morabit <nsrddyn@gmail.com> | 2025-01-17 21:42:02 +0100 |
| commit | 9ff91999b122df64c910b3d7ebed1ceda949e0c0 (patch) | |
| tree | e7c91ec9af16f850057238657d495938df3e2158 /space_game.c | |
| parent | de3d3056c8b82d868ff42362a2f6e9d2cd26a551 (diff) | |
collision works but overlaps
Diffstat (limited to 'space_game.c')
| -rw-r--r-- | space_game.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/space_game.c b/space_game.c new file mode 100644 index 0000000..bbe51cd --- /dev/null +++ b/space_game.c @@ -0,0 +1,21 @@ +#include <raylib.h> + +#define SCREEN_WIDTH 800 +#define SCREEN_HEIGHT 600 + +int main() +{ + InitWindow(SCREEN_WIDTH, SCREEN_HEIGHT, "SPACE INVADERS"); + SetTargetFPS(60); + + while(!WindowShouldClose()) + { + BeginDrawing(); + ClearBackground(BLACK); + + EndDrawing(); + } + + CloseWindow(); + return 0; +} |
