Review game templates

This commit is contained in:
Ray 2020-02-06 16:56:01 +01:00
commit 4b4f052fea

View file

@ -19,6 +19,11 @@
#include <emscripten/emscripten.h>
#endif
GameScreen currentScreen = 0;
Font font = { 0 };
Music music = { 0 };
Sound fxCoin = { 0 };
//----------------------------------------------------------------------------------
// Global Variables Definition (local to this module)
//----------------------------------------------------------------------------------
@ -153,7 +158,7 @@ static void UpdateTransition(void)
{
if (!transFadeOut)
{
transAlpha += 0.02f;
transAlpha += 0.05f;
// NOTE: Due to float internal representation, condition jumps on 1.0f instead of 1.05f
// For that reason we compare against 1.01f, to avoid last frame loading stop