mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
Replace tabs with spaces and update year of copyright notices (#927)
* Update year of copyright notices
* Fix mistake in comment
* Fix typo ("algorythms")
* Replace tabs with spaces
* Remove trailing whitespace and fix mistake in comment
* Fix ExportImageAsCode missing comment rectangle corner
* Replace tab with spaces
* Replace tabs with spaces
This commit is contained in:
@ -50,8 +50,8 @@ void UpdateDrawFrame(void); // Update and Draw one frame
|
||||
//----------------------------------------------------------------------------------
|
||||
int main(void)
|
||||
{
|
||||
// Initialization (Note windowTitle is unused on Android)
|
||||
//---------------------------------------------------------
|
||||
// Initialization (Note windowTitle is unused on Android)
|
||||
//---------------------------------------------------------
|
||||
InitWindow(screenWidth, screenHeight, "JUST DO [GGJ15]");
|
||||
|
||||
// Load global data here (assets that must be available in all screens, i.e. fonts)
|
||||
|
||||
@ -48,8 +48,8 @@ void UpdateDrawFrame(void); // Update and Draw one frame
|
||||
//----------------------------------------------------------------------------------
|
||||
int main(void)
|
||||
{
|
||||
// Initialization (Note windowTitle is unused on Android)
|
||||
//---------------------------------------------------------
|
||||
// Initialization (Note windowTitle is unused on Android)
|
||||
//---------------------------------------------------------
|
||||
InitWindow(screenWidth, screenHeight, "KOALA SEASONS");
|
||||
|
||||
// Load global data here (assets that must be available in all screens, i.e. fonts)
|
||||
|
||||
@ -53,8 +53,8 @@ void UpdateDrawFrame(void); // Update and Draw one frame
|
||||
//----------------------------------------------------------------------------------
|
||||
int main(void)
|
||||
{
|
||||
// Initialization (Note windowTitle is unused on Android)
|
||||
//---------------------------------------------------------
|
||||
// Initialization (Note windowTitle is unused on Android)
|
||||
//---------------------------------------------------------
|
||||
InitWindow(screenWidth, screenHeight, "LIGHT MY RITUAL! [GGJ16]");
|
||||
|
||||
// Global data loading (assets that must be available in all screens, i.e. fonts)
|
||||
@ -69,7 +69,7 @@ int main(void)
|
||||
UnloadImage(image); // Unload image from CPU memory (RAM)
|
||||
|
||||
font = LoadFont("resources/font_arcadian.png");
|
||||
//doors = LoadTexture("resources/textures/doors.png");
|
||||
//doors = LoadTexture("resources/textures/doors.png");
|
||||
//sndDoor = LoadSound("resources/audio/door.ogg");
|
||||
|
||||
music = LoadMusicStream("resources/audio/ambient.ogg");
|
||||
@ -270,7 +270,7 @@ void UpdateDrawFrame(void)
|
||||
case GAMEPLAY: DrawGameplayScreen(); break;
|
||||
default: break;
|
||||
}
|
||||
|
||||
|
||||
if (onTransition) DrawTransition();
|
||||
|
||||
//DrawFPS(10, 10);
|
||||
|
||||
@ -271,11 +271,11 @@ static void DrawLifes(void)
|
||||
{
|
||||
if (player.numLifes != 0)
|
||||
{
|
||||
Vector2 position = { 20, GetScreenHeight() - texLife.height - 20 };
|
||||
|
||||
Vector2 position = { 20, GetScreenHeight() - texLife.height - 20 };
|
||||
|
||||
for(int i = 0; i < player.numLifes; i++)
|
||||
{
|
||||
DrawTexture(texLife, position.x + i*texLife.width, position.y, Fade(RAYWHITE, 0.7f));
|
||||
DrawTexture(texLife, position.x + i*texLife.width, position.y, Fade(RAYWHITE, 0.7f));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -52,8 +52,8 @@ void UpdateDrawFrame(void); // Update and Draw one frame
|
||||
//----------------------------------------------------------------------------------
|
||||
int main(void)
|
||||
{
|
||||
// Initialization (Note windowTitle is unused on Android)
|
||||
//---------------------------------------------------------
|
||||
// Initialization (Note windowTitle is unused on Android)
|
||||
//---------------------------------------------------------
|
||||
InitWindow(screenWidth, screenHeight, "SKULLY ESCAPE [KING GAMEJAM 2015]");
|
||||
|
||||
// Global data loading (assets that must be available in all screens, i.e. fonts)
|
||||
@ -63,10 +63,10 @@ int main(void)
|
||||
PlayMusicStream(music);
|
||||
|
||||
font = LoadFont("resources/textures/alagard.png");
|
||||
doors = LoadTexture("resources/textures/doors.png");
|
||||
doors = LoadTexture("resources/textures/doors.png");
|
||||
sndDoor = LoadSound("resources/audio/door.ogg");
|
||||
sndScream = LoadSound("resources/audio/scream.ogg");
|
||||
|
||||
|
||||
InitPlayer();
|
||||
|
||||
// Setup and Init first screen
|
||||
@ -90,7 +90,7 @@ int main(void)
|
||||
//--------------------------------------------------------------------------------------
|
||||
|
||||
// Unload all global loaded data (i.e. fonts) here!
|
||||
UnloadPlayer();
|
||||
UnloadPlayer();
|
||||
UnloadFont(font);
|
||||
UnloadTexture(doors);
|
||||
UnloadSound(sndDoor);
|
||||
@ -397,7 +397,7 @@ void UpdateDrawFrame(void)
|
||||
case ENDING: DrawEndingScreen(); break;
|
||||
default: break;
|
||||
}
|
||||
|
||||
|
||||
if (onTransition) DrawTransition();
|
||||
|
||||
//DrawFPS(10, 10);
|
||||
|
||||
@ -70,7 +70,7 @@ int main(void)
|
||||
fontMission = LoadFontEx("resources/fonts/traveling_typewriter.ttf", 64, 0, 250);
|
||||
texButton = LoadTexture("resources/textures/title_ribbon.png");
|
||||
|
||||
// UI BUTTON
|
||||
// UI BUTTON
|
||||
recButton.width = texButton.width;
|
||||
recButton.height = texButton.height;
|
||||
recButton.x = screenWidth - recButton.width;
|
||||
@ -121,7 +121,7 @@ int main(void)
|
||||
|
||||
UnloadFont(fontMission);
|
||||
UnloadTexture(texButton);
|
||||
|
||||
|
||||
CloseAudioDevice(); // Close audio context
|
||||
|
||||
CloseWindow(); // Close window and OpenGL context
|
||||
@ -438,7 +438,7 @@ bool IsButtonPressed()
|
||||
}
|
||||
}
|
||||
else fadeButton = 0.80f;
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@ -58,8 +58,8 @@ static void UpdateDrawFrame(void); // Update and Draw one frame
|
||||
//----------------------------------------------------------------------------------
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
// Initialization
|
||||
//---------------------------------------------------------
|
||||
// Initialization
|
||||
//---------------------------------------------------------
|
||||
#if defined(PLATFORM_DESKTOP)
|
||||
// TODO: Support for dropped files on the exe
|
||||
|
||||
@ -299,7 +299,7 @@ static void UpdateDrawFrame(void)
|
||||
case ENDING: DrawEndingScreen(); break;
|
||||
default: break;
|
||||
}
|
||||
|
||||
|
||||
// Draw full screen rectangle in front of everything
|
||||
if (onTransition) DrawTransition();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user