change convention: from allman to K&R. add: gravity component
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user