Review games

This commit is contained in:
Ray
2019-05-21 22:36:52 +02:00
parent b1806f6600
commit 477f05db13
10 changed files with 224 additions and 89 deletions

View File

@ -1,14 +1,14 @@
/*******************************************************************************************
*
* raylib - Advance Game template
* CAT VS ROOMBA [GLOBAL GAME JAM 2019]
*
* <Game title>
* <Game description>
* Ah! Home, sweet home! Time for some automatic cleaning...
* if the worst enemy of Roomba allows it... be careful with Cat!
*
* This game has been created using raylib (www.raylib.com)
* This game has been created using raylib 2.0 (www.raylib.com)
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
*
* Copyright (c) 2014-2019 Ramon Santamaria (@raysan5)
* Copyright (c) 2019 Ramon Santamaria (@raysan5)
*
********************************************************************************************/
@ -57,7 +57,7 @@ int main(void)
{
// Initialization (Note windowTitle is unused on Android)
//---------------------------------------------------------
InitWindow(screenWidth, screenHeight, "raylib template - advance game");
InitWindow(screenWidth, screenHeight, "CAT VS ROOMBA [GGJ19]");
// Global data loading (assets that must be available in all screens, i.e. fonts)
InitAudioDevice();

View File

@ -33,22 +33,22 @@
//----------------------------------------------------------------------------------
// Logo screen global variables
static int framesCounter;
static int finishScreen;
static int framesCounter = 0;
static int finishScreen = 0;
static int logoPositionX;
static int logoPositionY;
static int logoPositionX = 0;
static int logoPositionY = 0;
static int lettersCount;
static int lettersCount = 0;
static int topSideRecWidth;
static int leftSideRecHeight;
static int topSideRecWidth = 0;
static int leftSideRecHeight = 0;
static int bottomSideRecWidth;
static int rightSideRecHeight;
static int bottomSideRecWidth = 0;
static int rightSideRecHeight = 0;
static char raylib[8]; // raylib text array, max 8 letters
static int state; // Tracking animation states (State Machine)
static char raylib[8] = { 0 }; // raylib text array, max 8 letters
static int state = 0; // Tracking animation states (State Machine)
static float alpha = 1.0f; // Useful for fading
//----------------------------------------------------------------------------------