change convention: from allman to K&R. add: gravity component

This commit is contained in:
2026-03-07 22:11:16 +01:00
parent f307470f56
commit 0220af27bc
12 changed files with 40 additions and 54 deletions

View File

@@ -4,8 +4,7 @@ const char *TITLE = "Punk n' Spray";
const int WIDTH = 900;
const int HEIGHT = 600;
Result InitGameWindow(void)
{
Result InitGameWindow(void) {
SetConfigFlags(FLAG_WINDOW_HIGHDPI);
InitWindow(WIDTH, HEIGHT, TITLE);
@@ -16,8 +15,7 @@ Result InitGameWindow(void)
return RESULT_OK;
}
void HandleWindowEvents()
{
void HandleWindowEvents() {
if (IsKeyPressed(KEY_F11))
{
int display = GetCurrentMonitor();
@@ -35,8 +33,7 @@ void HandleWindowEvents()
}
}
void ShowSplashScreen(void)
{
void ShowSplashScreen(void) {
Image logoImg = LoadImage("resources/images/PunkNSpray.png");
Image miarmaImg = LoadImage("resources/images/Miarma.png");
ImageResize(&miarmaImg, 64, 64);