summaryrefslogtreecommitdiffhomepage
path: root/games/just_do
diff options
context:
space:
mode:
authorRay <[email protected]>2019-05-21 22:36:52 +0200
committerRay <[email protected]>2019-05-21 22:36:52 +0200
commit477f05db133eaca1d3cb2c3712feb39d3f0b3ac2 (patch)
treedff5a42ba30ef24470c1beb827c4ff551e445217 /games/just_do
parentb1806f660070ec5b54fe20bd266f8b33b3c3bc13 (diff)
downloadraylib-477f05db133eaca1d3cb2c3712feb39d3f0b3ac2.tar.gz
raylib-477f05db133eaca1d3cb2c3712feb39d3f0b3ac2.zip
Review games
Diffstat (limited to 'games/just_do')
-rw-r--r--games/just_do/just_do.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/games/just_do/just_do.c b/games/just_do/just_do.c
index c7c76af9..e9a21526 100644
--- a/games/just_do/just_do.c
+++ b/games/just_do/just_do.c
@@ -1,20 +1,19 @@
/*******************************************************************************************
*
-* JUST DO - Global Game Jam 2015 Videogame
-* Experimental puzzle game that lets the user try to find a logic solution to
-* different shape-color-based situations.
+* JUST DO [GLOBAL GAME JAM 2015]
*
-* Developed by: Ramon Santamaria (Ray San)
+* Experimental puzzle game that lets the user try to find a logic
+* solution to different shape-color-based situations.
*
* This game has been created using raylib 1.6 (www.raylib.com)
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
*
-* raylib - Copyright (c) 2015 Ramon Santamaria (@raysan5)
+* Copyright (c) 2015 Ramon Santamaria (@raysan5)
*
********************************************************************************************/
#include "raylib.h"
-#include "screens/screens.h" // NOTE: Defines currentScreen
+#include "screens/screens.h" // NOTE: Defines global variable: currentScreen
#if defined(PLATFORM_WEB)
#include <emscripten/emscripten.h>
@@ -53,7 +52,7 @@ int main(void)
{
// Initialization (Note windowTitle is unused on Android)
//---------------------------------------------------------
- InitWindow(screenWidth, screenHeight, "GGJ15 - JUST DO");
+ InitWindow(screenWidth, screenHeight, "JUST DO [GGJ15]");
// Load global data here (assets that must be available in all screens, i.e. fonts)
InitAudioDevice();
@@ -74,9 +73,6 @@ int main(void)
// Main game loop
while (!WindowShouldClose()) // Detect window close button or ESC key
{
-
- if (IsKeyPressed(KEY_SPACE)) PlaySound(levelWin);
-
UpdateDrawFrame();
}
#endif
@@ -144,6 +140,8 @@ void UpdateDrawFrame(void)
{
// Update
//----------------------------------------------------------------------------------
+ if (currentScreen != LOGO) UpdateMusicStream(music);
+
if (!onTransition)
{
if (IsKeyPressed('0'))
@@ -197,8 +195,6 @@ void UpdateDrawFrame(void)
InitLevel08Screen();
}
- UpdateMusicStream(music);
-
switch(currentScreen)
{
case LOGO: