Upload files to "include"

This commit is contained in:
2026-04-06 21:05:41 +00:00
parent 00f9e75381
commit 0b1da0481e
+28 -2
View File
@@ -1,5 +1,3 @@
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdWullie.h>
@@ -22,14 +20,42 @@ typedef struct GameInit {
SDL_Event event;
bool isRunning;
} GameInit;
// blocks
#define squareSize 30
#define ColourSquare 255, 215, 0, 100
#define ColourRightL 255, 200, 46, 100
#define ColourLeftL 72, 93, 197, 100
#define ColourT 120, 37, 111, 100
#define ColourI 1, 237, 250, 100
#define ColourLeftZ 0, 255, 0, 100
#define ColourRightZ 234, 20, 28, 100
void renderBlockSquare(GameInit *game);
void renderBlockRightL(GameInit *game);
void renderBlockLeftL(GameInit *game);
void renderBlockT(GameInit *game);
void renderBlockI(GameInit *game);
void renderBlockLeftZ(GameInit *game);
void renderBlockRightZ(GameInit *game);
int generateNextBlock();
//sdl shit
void sdlGameInit(GameInit *game);
void sdlGameFree(GameInit **gameInit);
// player
#define playerCurrentBlock playerBlock[4]
#define GameFilledRows FilledRows[190]
void tetrisPlayerSwitch(GameInit *game);
// game shit
void gameLoop(GameInit *game);
void gameEventCheck(GameInit *game);
void gameDrawContext(GameInit *game);
void gameCreateContext(GameInit **gameInit);
void tetrisDrawGrid(GameInit *game);
void tetrisDrawBoxes(GameInit *game);