2
0
Эх сурвалжийг харах

Merge pull request #7 from raysan5/master

pull
Murray Campbell 6 жил өмнө
parent
commit
03fb5499a0
100 өөрчлөгдсөн 182 нэмэгдсэн , 693 устгасан
  1. 1 0
      .gitignore
  2. 0 1
      .travis.yml
  3. 18 16
      CONTRIBUTING.md
  4. 3 3
      LICENSE.md
  5. 1 1
      README.md
  6. 1 0
      examples/Makefile
  7. 90 0
      examples/core/core_multitouch.c
  8. BIN
      examples/core/core_multitouch.png
  9. 1 2
      examples/models/models_yaw_pitch_roll.c
  10. 3 0
      examples/physac/physics_restitution.c
  11. BIN
      examples/shapes/shapes_colors_palette.png
  12. BIN
      examples/text/resources/custom_alagard.png
  13. BIN
      examples/text/resources/custom_jupiter_crash.png
  14. BIN
      examples/text/resources/custom_mecha.png
  15. BIN
      examples/text/resources/fonts/alagard.png
  16. BIN
      examples/text/resources/fonts/alpha_beta.png
  17. BIN
      examples/text/resources/fonts/jupiter_crash.png
  18. BIN
      examples/text/resources/fonts/mecha.png
  19. BIN
      examples/text/resources/fonts/pixantiqua.png
  20. BIN
      examples/text/resources/fonts/pixelplay.png
  21. BIN
      examples/text/resources/fonts/romulus.png
  22. BIN
      examples/text/resources/fonts/setback.png
  23. BIN
      examples/textures/resources/custom_jupiter_crash.png
  24. BIN
      examples/textures/resources/scarfy.png
  25. BIN
      games/drturtle/resources/fish.png
  26. BIN
      games/drturtle/resources/gamera.png
  27. BIN
      games/drturtle/resources/gframe.png
  28. BIN
      games/drturtle/resources/komika.png
  29. BIN
      games/drturtle/resources/mountains.png
  30. BIN
      games/drturtle/resources/orca.png
  31. BIN
      games/drturtle/resources/sea.png
  32. BIN
      games/drturtle/resources/shark.png
  33. BIN
      games/drturtle/resources/sky.png
  34. BIN
      games/drturtle/resources/swhale.png
  35. BIN
      games/drturtle/resources/title.png
  36. BIN
      games/drturtle/resources/turtle.png
  37. 1 1
      games/just_do/screens/screen_level06.c
  38. 1 1
      games/koala_seasons/screens/screen_gameplay.c
  39. BIN
      games/light_my_ritual/resources/font_arcadian.png
  40. BIN
      games/light_my_ritual/resources/textures/back_title.png
  41. BIN
      games/light_my_ritual/resources/textures/background.png
  42. BIN
      games/light_my_ritual/resources/textures/circle_level_i_off.png
  43. BIN
      games/light_my_ritual/resources/textures/circle_level_i_on.png
  44. BIN
      games/light_my_ritual/resources/textures/circle_level_ii_off.png
  45. BIN
      games/light_my_ritual/resources/textures/circle_level_ii_on.png
  46. BIN
      games/light_my_ritual/resources/textures/circle_level_iii_off.png
  47. BIN
      games/light_my_ritual/resources/textures/circle_level_iii_on.png
  48. BIN
      games/light_my_ritual/resources/textures/enemy.png
  49. BIN
      games/light_my_ritual/resources/textures/foreground_level_i.png
  50. BIN
      games/light_my_ritual/resources/textures/foreground_level_ii.png
  51. BIN
      games/light_my_ritual/resources/textures/foreground_level_iii.png
  52. BIN
      games/light_my_ritual/resources/textures/light.png
  53. BIN
      games/light_my_ritual/resources/textures/light_glow.png
  54. BIN
      games/light_my_ritual/resources/textures/light_ray.png
  55. BIN
      games/light_my_ritual/resources/textures/msg_ritual.png
  56. BIN
      games/light_my_ritual/resources/textures/player.png
  57. BIN
      games/light_my_ritual/resources/textures/time_over.png
  58. BIN
      games/light_my_ritual/resources/textures/title.png
  59. BIN
      games/skully_escape/resources/textures/background_aisle01.png
  60. BIN
      games/skully_escape/resources/textures/doors.png
  61. BIN
      games/skully_escape/resources/textures/monster_chair_left.png
  62. BIN
      games/skully_escape/resources/textures/monster_chair_right.png
  63. BIN
      games/skully_escape/resources/textures/monster_lamp_left.png
  64. BIN
      games/skully_escape/resources/textures/monster_lamp_right.png
  65. BIN
      games/skully_escape/resources/textures/monster_picture.png
  66. BIN
      games/skully_escape/resources/textures/monster_window.png
  67. BIN
      games/skully_escape/resources/textures/skully.png
  68. BIN
      games/transmission/resources/textures/ending_background.png
  69. BIN
      games/transmission/resources/textures/message_background.png
  70. BIN
      games/transmission/resources/textures/message_vignette.png
  71. BIN
      games/transmission/resources/textures/mission_background.png
  72. BIN
      games/transmission/resources/textures/mission_backline.png
  73. BIN
      games/transmission/resources/textures/title_background.png
  74. BIN
      games/transmission/resources/textures/title_ribbon.png
  75. BIN
      games/transmission/resources/textures/words_base.png
  76. 6 4
      games/transmission/screens/screen_ending.c
  77. BIN
      games/wave_collector/resources/textures/background.png
  78. BIN
      games/wave_collector/resources/textures/background_gameplay.png
  79. BIN
      games/wave_collector/resources/textures/background_title.png
  80. BIN
      games/wave_collector/resources/textures/icon_synchro.png
  81. BIN
      games/wave_collector/resources/textures/icon_warp.png
  82. BIN
      games/wave_collector/resources/textures/lose.png
  83. BIN
      games/wave_collector/resources/textures/player.png
  84. BIN
      games/wave_collector/resources/textures/sample_big.png
  85. BIN
      games/wave_collector/resources/textures/sample_small.png
  86. BIN
      games/wave_collector/resources/textures/win.png
  87. BIN
      logo/raylib.ico
  88. BIN
      logo/raylib_180x180.png
  89. BIN
      logo/raylib_36x36.png
  90. BIN
      logo/raylib_512x512.png
  91. BIN
      logo/raylib_72x72.png
  92. BIN
      logo/raylib_96x96.png
  93. 4 4
      projects/VS2017/examples/core_basic_window.vcxproj
  94. 4 4
      projects/VS2017/examples/core_basic_window_cpp.vcxproj
  95. BIN
      raylib.rc.o
  96. 9 8
      src/CMakeLists.txt
  97. 8 5
      src/CMakeOptions.txt
  98. 2 24
      src/Makefile
  99. 28 618
      src/audio.c
  100. 1 1
      src/config.h

+ 1 - 0
.gitignore

@@ -33,6 +33,7 @@ Thumbs.db
 [Bb]in
 [Bb]in
 [Dd]ebug/
 [Dd]ebug/
 [Dd]ebug.win32/
 [Dd]ebug.win32/
+[Dd]ebug.DLL/
 *.sbr
 *.sbr
 *.sdf
 *.sdf
 obj/
 obj/

+ 0 - 1
.travis.yml

@@ -120,7 +120,6 @@ script:
       -DBUILD_EXAMPLES=ON -DBUILD_GAMES=ON
       -DBUILD_EXAMPLES=ON -DBUILD_GAMES=ON
       -DUSE_EXTERNAL_GLFW=$USE_EXTERNAL_GLFW
       -DUSE_EXTERNAL_GLFW=$USE_EXTERNAL_GLFW
       -DUSE_WAYLAND=$WAYLAND
       -DUSE_WAYLAND=$WAYLAND
-      -DUSE_OPENAL_BACKEND=$OPENAL
       -DINCLUDE_EVERYTHING=ON
       -DINCLUDE_EVERYTHING=ON
       ..
       ..
   - $RUNNER make VERBOSE=1
   - $RUNNER make VERBOSE=1

+ 18 - 16
CONTRIBUTING.md

@@ -59,21 +59,23 @@ To open new issue for raylib (bug, enhancement, discussion...), just try to foll
 
 
 Some people ported raylib to other languages in form of bindings or wrappers to the library, here is a list with the ones I'm aware of:
 Some people ported raylib to other languages in form of bindings or wrappers to the library, here is a list with the ones I'm aware of:
 
 
- - [raylib C/C++ version (default)](https://github.com/raysan5/raylib)
- - [raylib Lua binding](https://github.com/raysan5/raylib-lua)
- - [raylib Go binding](https://github.com/gen2brain/raylib-go)
- - [raylib Nim binding](https://gitlab.com/define-private-public/raylib-Nim)
- - [raylib Crystal binding](https://gitlab.com/Zatherz/cray) 
- - [raylib Perl wrapper](https://metacpan.org/pod/Graphics::Raylib) 
- - [raylib Pascal binding](https://github.com/drezgames/raylib-pascal)
- - [raylib flat-assembler Usage example](http://forum.raylib.com/index.php?p=/discussion/comment/425/#Comment_425)
- - [raylib COBOL Usage example](https://github.com/Martinfx/Cobol/tree/master/OpenCobol/Games/raylib)
- - [raylib C# binding](https://github.com/ChrisDill/Raylib-cs)
- - [raylib C# binding](https://github.com/TheLumaio/RaylibSharp)
- - [raylib Ruby binding](https://github.com/D3nX/raylib-ruby-ffi)
- - [raylib Rust binding](https://github.com/deltaphc/raylib-rs)
- - [raylib Python binding](https://github.com/overdev/raylibpy)
- - [raylib Haskell binding](https://github.com/DevJac/raylib-haskell)
+ - [raylib](https://github.com/raysan5/raylib) : raylib **C/C++** version (default)
+ - [raylib-lua](https://github.com/raysan5/raylib-lua) : raylib **Lua** binding
+ - [raylib-go](https://github.com/gen2brain/raylib-go) : raylib **Go** binding
+ - [raylib-Nim](https://gitlab.com/define-private-public/raylib-Nim) : raylib **Nim** binding
+ - [cray](https://gitlab.com/Zatherz/cray) - raylib **Crystal** binding
+ - [Graphics::Raylib](https://metacpan.org/pod/Graphics::Raylib) : raylib **Perl** wrapper
+ - [raylib-pascal](https://github.com/drezgames/raylib-pascal) - raylib **Pascal** binding
+ - [Raylib-cs](https://github.com/ChrisDill/Raylib-cs) : raylib **C#** binding
+ - [RaylibSharp](https://github.com/TheLumaio/RaylibSharp) : raylib **C#** binding
+ - [raylib-ruby-ffi](https://github.com/D3nX/raylib-ruby-ffi) : raylib **Ruby** binding
+ - [raylib-rs](https://github.com/deltaphc/raylib-rs) : raylib **Rust** binding
+ - [raylib-rust](https://github.com/dtcristo/raylib-rust) : raylib **Rust** binding
+ - [raylib-py](https://github.com/overdev/raylib-py) : raylib **Python** binding
+ - [raylib-haskell](https://github.com/DevJac/raylib-haskell) : raylib **Haskell** binding
+ - [raylib-java]() : raylib **Java** binding
+ - *[raylib flat-assembler Usage example](http://forum.raylib.com/index.php?p=/discussion/comment/425/#Comment_425)*
+ - *[raylib COBOL Usage example](https://github.com/Martinfx/Cobol/tree/master/OpenCobol/Games/raylib)*
  
  
 Usually, raylib bindings follow the convention: `raylib-{language}`
 Usually, raylib bindings follow the convention: `raylib-{language}`
 
 
@@ -85,7 +87,7 @@ provide the icon/logo for that new language binding.
 If you have any doubt, don't hesitate to [contact me](mailto:[email protected])!.
 If you have any doubt, don't hesitate to [contact me](mailto:[email protected])!.
 You can write me a direct mail but you can also contact me on the following networks:
 You can write me a direct mail but you can also contact me on the following networks:
 
 
- - [raylib forum](http://forum.raylib.com/) - A good place for discussions or to ask for help.
+ - [raylib reddit](https://www.reddit.com/r/raylib/) - A good place for discussions or to ask for help.
  - [raylib Discord](https://discord.gg/VkzNHUE) - A direct communication channel for project discussions.
  - [raylib Discord](https://discord.gg/VkzNHUE) - A direct communication channel for project discussions.
  - [raylib twitter](https://twitter.com/raysan5) - My personal twitter account, I usually post about raylib, you can send me PMs.
  - [raylib twitter](https://twitter.com/raysan5) - My personal twitter account, I usually post about raylib, you can send me PMs.
  - [raylib web](http://www.raylib.com/) - On top-right corner there is a bunch of networks where you can find me.
  - [raylib web](http://www.raylib.com/) - On top-right corner there is a bunch of networks where you can find me.

+ 3 - 3
LICENSE.md

@@ -7,7 +7,7 @@ source code
 raylib is licensed under an unmodified zlib/libpng license, which is an OSI-certified, 
 raylib is licensed under an unmodified zlib/libpng license, which is an OSI-certified, 
 BSD-like license that allows static linking with closed source software:
 BSD-like license that allows static linking with closed source software:
 	
 	
-Copyright (c) 2013-2016 Ramon Santamaria (@raysan5)
+Copyright (c) 2013-2019 Ramon Santamaria (@raysan5)
 
 
 This software is provided "as-is", without any express or implied warranty. In no event 
 This software is provided "as-is", without any express or implied warranty. In no event 
 will the authors be held liable for any damages arising from the use of this software.
 will the authors be held liable for any damages arising from the use of this software.
@@ -41,9 +41,9 @@ The following fonts [provided with raylib](https://github.com/raysan5/raylib/tre
 2d art
 2d art
 ------
 ------
 
 
-[scarfy spritesheet](https://github.com/raysan5/raylib/blob/master/examples/textures/resources/scarfy.png) and [fudesumi image](https://github.com/raysan5/raylib/blob/master/examples/textures/resources/fudesumi.png) have been created by [Eiden Marsal](https://www.artstation.com/artist/marshall_z) and licensed as [Creative Commons Attribution-NonCommercial 3.0](https://creativecommons.org/licenses/by-nc/3.0/legalcode)
+[scarfy spritesheet](https://github.com/raysan5/raylib/blob/master/examples/textures/resources/scarfy.png) and [fudesumi image](https://github.com/raysan5/raylib/blob/master/examples/textures/resources/fudesumi.png) have been created by [Eiden Marsal](https://www.artstation.com/artist/marshall_z) and are licensed as [Creative Commons Attribution-NonCommercial 3.0](https://creativecommons.org/licenses/by-nc/3.0/legalcode)
 
 
 3d models
 3d models
 ---------
 ---------
 
 
-[medieval city 3d models and textures](https://github.com/raysan5/raylib/tree/master/examples/models/resources/medieval) have been created by Alberto Cano and licensed as [Creative Commons Attribution-NonCommercial 4.0](https://creativecommons.org/licenses/by-nc/4.0/legalcode)
+[medieval city 3d models and textures](https://github.com/raysan5/raylib/tree/master/examples/models/resources/medieval) have been created by Alberto Cano and are licensed as [Creative Commons Attribution-NonCommercial 4.0](https://creativecommons.org/licenses/by-nc/4.0/legalcode)

+ 1 - 1
README.md

@@ -31,7 +31,7 @@ features
   - **Powerful math module** for Vector, Matrix and Quaternion operations: [raymath](https://github.com/raysan5/raylib/blob/master/src/raymath.h)
   - **Powerful math module** for Vector, Matrix and Quaternion operations: [raymath](https://github.com/raysan5/raylib/blob/master/src/raymath.h)
   - Audio loading and playing with streaming support (WAV, OGG, MP3, FLAC, XM, MOD)
   - Audio loading and playing with streaming support (WAV, OGG, MP3, FLAC, XM, MOD)
   - **VR stereo rendering** support with configurable HMD device parameters
   - **VR stereo rendering** support with configurable HMD device parameters
-  - Bindings to **Lua** ([raylib-lua](https://github.com/raysan5/raylib-lua)), **Go** ([raylib-go](https://github.com/gen2brain/raylib-go)) and more!
+  - Bindings to **Lua** ([raylib-lua](https://github.com/raysan5/raylib-lua)), **Go** ([raylib-go](https://github.com/gen2brain/raylib-go)) and [more](https://github.com/raysan5/raylib/blob/master/CONTRIBUTING.md#raylib-bindings)!
 
 
 raylib uses on its [core](https://github.com/raysan5/raylib/blob/master/src/core.c) module the outstanding [GLFW3](http://www.glfw.org/) library, embedded inside raylib in the form of [rglfw](https://github.com/raysan5/raylib/blob/master/src/rglfw.c) module, avoiding that way external dependencies.
 raylib uses on its [core](https://github.com/raysan5/raylib/blob/master/src/core.c) module the outstanding [GLFW3](http://www.glfw.org/) library, embedded inside raylib in the form of [rglfw](https://github.com/raysan5/raylib/blob/master/src/rglfw.c) module, avoiding that way external dependencies.
 
 

+ 1 - 0
examples/Makefile

@@ -375,6 +375,7 @@ EXAMPLES = \
     core/core_2d_camera \
     core/core_2d_camera \
     core/core_world_screen \
     core/core_world_screen \
     core/core_vr_simulator \
     core/core_vr_simulator \
+    core/core_multitouch \
     shapes/shapes_logo_raylib \
     shapes/shapes_logo_raylib \
     shapes/shapes_basic_shapes \
     shapes/shapes_basic_shapes \
     shapes/shapes_colors_palette \
     shapes/shapes_colors_palette \

+ 90 - 0
examples/core/core_multitouch.c

@@ -0,0 +1,90 @@
+/*******************************************************************************************
+*
+*   raylib [core] example - Multitouch input
+*
+*   This example has been created using raylib 2.1 (www.raylib.com)
+*   raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
+*
+*   Copyright (c) 2014 Ramon Santamaria (@raysan5)
+*   Example by Berni
+*
+********************************************************************************************/
+
+#include "raylib.h"
+#include <stdio.h>
+
+int main()
+{
+    // Initialization
+    //--------------------------------------------------------------------------------------
+    int screenWidth = 800;
+    int screenHeight = 450;
+
+    InitWindow(screenWidth, screenHeight, "raylib [core] example - multitouch input");
+
+    Vector2 ballPosition = { -100.0f, -100.0f };
+    Color ballColor;
+    int PressedCounter = 0;
+    Vector2 TouchPos;
+    char Str[16];
+
+    SetTargetFPS(60);
+    //---------------------------------------------------------------------------------------
+  
+    // Main game loop
+    while (!WindowShouldClose())    // Detect window close button or ESC key
+    {
+        // Update
+        //----------------------------------------------------------------------------------
+        ballPosition = GetMousePosition();
+        
+        ballColor = BEIGE;
+
+        if (IsMouseButtonDown(MOUSE_LEFT_BUTTON)) ballColor = MAROON;
+        if (IsMouseButtonDown(MOUSE_MIDDLE_BUTTON)) ballColor = LIME;
+        if (IsMouseButtonDown(MOUSE_RIGHT_BUTTON)) ballColor = DARKBLUE;
+
+        if (IsMouseButtonPressed(MOUSE_LEFT_BUTTON)) PressedCounter = 10;
+        if (IsMouseButtonPressed(MOUSE_MIDDLE_BUTTON)) PressedCounter = 10;
+        if (IsMouseButtonPressed(MOUSE_RIGHT_BUTTON)) PressedCounter = 10;
+        if(PressedCounter > 0)
+            PressedCounter--;
+        //----------------------------------------------------------------------------------
+
+        // Draw
+        //----------------------------------------------------------------------------------
+        BeginDrawing();
+
+            ClearBackground(RAYWHITE);
+
+            // Multitouch
+            for (int i = 0; i < MAX_TOUCH_POINTS; ++i)
+            {              
+                TouchPos = GetTouchPosition(i);                                     // Get the touch point
+                
+                if( (TouchPos.x >= 0) && (TouchPos.y >= 0)  )                       // Make sure point is not (-1,-1) as this means there is no touch for it
+                {
+                    DrawCircleV(TouchPos, 34, ORANGE);                              // Draw a circle there
+                    
+                    sprintf(Str,"%d",i);
+                    DrawText(Str, TouchPos.x - 10, TouchPos.y - 70, 40, BLACK);     // Also show its index number
+                } 
+            }
+
+            // Draw the normal mouse location
+            DrawCircleV(ballPosition, 30 + (PressedCounter * 3), ballColor);
+
+            DrawText("move ball with mouse and click mouse button to change color", 10, 10, 20, DARKGRAY);
+            DrawText("touch the screen at multiple locations to get multiple balls", 10, 30, 20, DARKGRAY);
+
+        EndDrawing();
+        //----------------------------------------------------------------------------------
+    }
+
+    // De-Initialization
+    //--------------------------------------------------------------------------------------
+    CloseWindow();        // Close window and OpenGL context
+    //--------------------------------------------------------------------------------------
+
+    return 0;
+}

BIN
examples/core/core_multitouch.png


+ 1 - 2
examples/models/models_yaw_pitch_roll.c

@@ -5,8 +5,7 @@
 *   This example has been created using raylib 1.8 (www.raylib.com)
 *   This example has been created using raylib 1.8 (www.raylib.com)
 *   raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
 *   raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
 *
 *
-*   Example based on Berni work on Raspberry Pi:
-*   http://forum.raylib.com/index.php?p=/discussion/124/line-versus-triangle-drawing-order
+*   Example based on Berni work on Raspberry Pi.
 *
 *
 *   Copyright (c) 2017 Ramon Santamaria (@raysan5)
 *   Copyright (c) 2017 Ramon Santamaria (@raysan5)
 *
 *

+ 3 - 0
examples/physac/physics_restitution.c

@@ -51,6 +51,9 @@ int main()
     circleC->restitution = 1;
     circleC->restitution = 1;
     
     
     SetTargetFPS(60);
     SetTargetFPS(60);
+
+    // Restitution demo needs a very tiny physics time step for a proper simulation
+    SetPhysicsTimeStep(1.0/60.0/100 * 1000);
     //--------------------------------------------------------------------------------------
     //--------------------------------------------------------------------------------------
 
 
     // Main game loop
     // Main game loop

BIN
examples/shapes/shapes_colors_palette.png


BIN
examples/text/resources/custom_alagard.png


BIN
examples/text/resources/custom_jupiter_crash.png


BIN
examples/text/resources/custom_mecha.png


BIN
examples/text/resources/fonts/alagard.png


BIN
examples/text/resources/fonts/alpha_beta.png


BIN
examples/text/resources/fonts/jupiter_crash.png


BIN
examples/text/resources/fonts/mecha.png


BIN
examples/text/resources/fonts/pixantiqua.png


BIN
examples/text/resources/fonts/pixelplay.png


BIN
examples/text/resources/fonts/romulus.png


BIN
examples/text/resources/fonts/setback.png


BIN
examples/textures/resources/custom_jupiter_crash.png


BIN
examples/textures/resources/scarfy.png


BIN
games/drturtle/resources/fish.png


BIN
games/drturtle/resources/gamera.png


BIN
games/drturtle/resources/gframe.png


BIN
games/drturtle/resources/komika.png


BIN
games/drturtle/resources/mountains.png


BIN
games/drturtle/resources/orca.png


BIN
games/drturtle/resources/sea.png


BIN
games/drturtle/resources/shark.png


BIN
games/drturtle/resources/sky.png


BIN
games/drturtle/resources/swhale.png


BIN
games/drturtle/resources/title.png


BIN
games/drturtle/resources/turtle.png


+ 1 - 1
games/just_do/screens/screen_level06.c

@@ -132,7 +132,7 @@ void DrawLevel06Screen(void)
         DrawRectangleRec(movingRecs[i], GRAY);
         DrawRectangleRec(movingRecs[i], GRAY);
     }
     }
     
     
-    if (!done & (mouseOverNum >= 0)) DrawRectangleLines(movingRecs[mouseOverNum].x - 5, movingRecs[mouseOverNum].y - 5, movingRecs[mouseOverNum].width + 10, movingRecs[mouseOverNum].height + 10, Fade(LIGHTGRAY, 0.8f));
+    if (!done && (mouseOverNum >= 0)) DrawRectangleLines(movingRecs[mouseOverNum].x - 5, movingRecs[mouseOverNum].y - 5, movingRecs[mouseOverNum].width + 10, movingRecs[mouseOverNum].height + 10, Fade(LIGHTGRAY, 0.8f));
         
         
     if (levelFinished)
     if (levelFinished)
     {
     {

+ 1 - 1
games/koala_seasons/screens/screen_gameplay.c

@@ -954,7 +954,7 @@ void UpdateGameplayScreen(void)
                     playerActive = false;
                     playerActive = false;
                     killer = 5;
                     killer = 5;
                 }
                 }
-                else if (CheckCollisionRecs(bee, player) && (state == FINALFORM) && (state != KICK))
+                else if (CheckCollisionRecs(bee, player) && (state == FINALFORM))
                 {
                 {
                     isHitBee = true;
                     isHitBee = true;
                     beeVelocity = 8;
                     beeVelocity = 8;

BIN
games/light_my_ritual/resources/font_arcadian.png


BIN
games/light_my_ritual/resources/textures/back_title.png


BIN
games/light_my_ritual/resources/textures/background.png


BIN
games/light_my_ritual/resources/textures/circle_level_i_off.png


BIN
games/light_my_ritual/resources/textures/circle_level_i_on.png


BIN
games/light_my_ritual/resources/textures/circle_level_ii_off.png


BIN
games/light_my_ritual/resources/textures/circle_level_ii_on.png


BIN
games/light_my_ritual/resources/textures/circle_level_iii_off.png


BIN
games/light_my_ritual/resources/textures/circle_level_iii_on.png


BIN
games/light_my_ritual/resources/textures/enemy.png


BIN
games/light_my_ritual/resources/textures/foreground_level_i.png


BIN
games/light_my_ritual/resources/textures/foreground_level_ii.png


BIN
games/light_my_ritual/resources/textures/foreground_level_iii.png


BIN
games/light_my_ritual/resources/textures/light.png


BIN
games/light_my_ritual/resources/textures/light_glow.png


BIN
games/light_my_ritual/resources/textures/light_ray.png


BIN
games/light_my_ritual/resources/textures/msg_ritual.png


BIN
games/light_my_ritual/resources/textures/player.png


BIN
games/light_my_ritual/resources/textures/time_over.png


BIN
games/light_my_ritual/resources/textures/title.png


BIN
games/skully_escape/resources/textures/background_aisle01.png


BIN
games/skully_escape/resources/textures/doors.png


BIN
games/skully_escape/resources/textures/monster_chair_left.png


BIN
games/skully_escape/resources/textures/monster_chair_right.png


BIN
games/skully_escape/resources/textures/monster_lamp_left.png


BIN
games/skully_escape/resources/textures/monster_lamp_right.png


BIN
games/skully_escape/resources/textures/monster_picture.png


BIN
games/skully_escape/resources/textures/monster_window.png


BIN
games/skully_escape/resources/textures/skully.png


BIN
games/transmission/resources/textures/ending_background.png


BIN
games/transmission/resources/textures/message_background.png


BIN
games/transmission/resources/textures/message_vignette.png


BIN
games/transmission/resources/textures/mission_background.png


BIN
games/transmission/resources/textures/mission_backline.png


BIN
games/transmission/resources/textures/title_background.png


BIN
games/transmission/resources/textures/title_ribbon.png


BIN
games/transmission/resources/textures/words_base.png


+ 6 - 4
games/transmission/screens/screen_ending.c

@@ -110,10 +110,12 @@ void InitEndingScreen(void)
         {
         {
             // WARNING: It fails if the last sentence word has a '.' after space
             // WARNING: It fails if the last sentence word has a '.' after space
             char *title = StringReplace(headline, messageWords[i].text, codingWords[messageWords[i].id]);
             char *title = StringReplace(headline, messageWords[i].text, codingWords[messageWords[i].id]);
-            
-            strcpy(headline, title);     // Base headline updated
-            
-            if (title != NULL) free(title);
+           
+            if (title != NULL)
+            {
+                strcpy(headline, title);     // Base headline updated
+                free(title);
+            }
         }
         }
     }
     }
     
     

BIN
games/wave_collector/resources/textures/background.png


BIN
games/wave_collector/resources/textures/background_gameplay.png


BIN
games/wave_collector/resources/textures/background_title.png


BIN
games/wave_collector/resources/textures/icon_synchro.png


BIN
games/wave_collector/resources/textures/icon_warp.png


BIN
games/wave_collector/resources/textures/lose.png


BIN
games/wave_collector/resources/textures/player.png


BIN
games/wave_collector/resources/textures/sample_big.png


BIN
games/wave_collector/resources/textures/sample_small.png


BIN
games/wave_collector/resources/textures/win.png


BIN
logo/raylib.ico


BIN
logo/raylib_180x180.png


BIN
logo/raylib_36x36.png


BIN
logo/raylib_512x512.png


BIN
logo/raylib_72x72.png


BIN
logo/raylib_96x96.png


+ 4 - 4
projects/VS2017/examples/core_basic_window.vcxproj

@@ -98,7 +98,7 @@
       <Optimization>Disabled</Optimization>
       <Optimization>Disabled</Optimization>
       <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;PLATFORM_DESKTOP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;PLATFORM_DESKTOP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <CompileAs>CompileAsC</CompileAs>
       <CompileAs>CompileAsC</CompileAs>
-      <AdditionalIncludeDirectories>$(SolutionDir)..\..\release\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <AdditionalIncludeDirectories>$(SolutionDir)..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
     </ClCompile>
     </ClCompile>
     <Link>
     <Link>
       <SubSystem>Console</SubSystem>
       <SubSystem>Console</SubSystem>
@@ -115,7 +115,7 @@
       <Optimization>Disabled</Optimization>
       <Optimization>Disabled</Optimization>
       <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;PLATFORM_DESKTOP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;PLATFORM_DESKTOP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <CompileAs>CompileAsC</CompileAs>
       <CompileAs>CompileAsC</CompileAs>
-      <AdditionalIncludeDirectories>$(SolutionDir)..\..\release\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <AdditionalIncludeDirectories>$(SolutionDir)..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
     </ClCompile>
     </ClCompile>
     <Link>
     <Link>
       <SubSystem>Console</SubSystem>
       <SubSystem>Console</SubSystem>
@@ -133,7 +133,7 @@
       <FunctionLevelLinking>true</FunctionLevelLinking>
       <FunctionLevelLinking>true</FunctionLevelLinking>
       <IntrinsicFunctions>true</IntrinsicFunctions>
       <IntrinsicFunctions>true</IntrinsicFunctions>
       <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions);PLATFORM_DESKTOP</PreprocessorDefinitions>
       <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions);PLATFORM_DESKTOP</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories>$(SolutionDir)..\..\release\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <AdditionalIncludeDirectories>$(SolutionDir)..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
       <CompileAs>CompileAsC</CompileAs>
       <CompileAs>CompileAsC</CompileAs>
       <RemoveUnreferencedCodeData>true</RemoveUnreferencedCodeData>
       <RemoveUnreferencedCodeData>true</RemoveUnreferencedCodeData>
     </ClCompile>
     </ClCompile>
@@ -155,7 +155,7 @@
       <FunctionLevelLinking>true</FunctionLevelLinking>
       <FunctionLevelLinking>true</FunctionLevelLinking>
       <IntrinsicFunctions>true</IntrinsicFunctions>
       <IntrinsicFunctions>true</IntrinsicFunctions>
       <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions);PLATFORM_DESKTOP</PreprocessorDefinitions>
       <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions);PLATFORM_DESKTOP</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories>$(SolutionDir)..\..\release\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <AdditionalIncludeDirectories>$(SolutionDir)..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
       <CompileAs>CompileAsC</CompileAs>
       <CompileAs>CompileAsC</CompileAs>
       <RemoveUnreferencedCodeData>true</RemoveUnreferencedCodeData>
       <RemoveUnreferencedCodeData>true</RemoveUnreferencedCodeData>
     </ClCompile>
     </ClCompile>

+ 4 - 4
projects/VS2017/examples/core_basic_window_cpp.vcxproj

@@ -97,7 +97,7 @@
       <WarningLevel>Level3</WarningLevel>
       <WarningLevel>Level3</WarningLevel>
       <Optimization>Disabled</Optimization>
       <Optimization>Disabled</Optimization>
       <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories>$(SolutionDir)..\..\release\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <AdditionalIncludeDirectories>$(SolutionDir)..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
       <CompileAs>CompileAsCpp</CompileAs>
       <CompileAs>CompileAsCpp</CompileAs>
     </ClCompile>
     </ClCompile>
     <Link>
     <Link>
@@ -114,7 +114,7 @@
       <WarningLevel>Level3</WarningLevel>
       <WarningLevel>Level3</WarningLevel>
       <Optimization>Disabled</Optimization>
       <Optimization>Disabled</Optimization>
       <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories>$(SolutionDir)..\..\release\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <AdditionalIncludeDirectories>$(SolutionDir)..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
       <CompileAs>CompileAsCpp</CompileAs>
       <CompileAs>CompileAsCpp</CompileAs>
     </ClCompile>
     </ClCompile>
     <Link>
     <Link>
@@ -134,7 +134,7 @@
       <IntrinsicFunctions>true</IntrinsicFunctions>
       <IntrinsicFunctions>true</IntrinsicFunctions>
       <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <CompileAs>CompileAsCpp</CompileAs>
       <CompileAs>CompileAsCpp</CompileAs>
-      <AdditionalIncludeDirectories>$(SolutionDir)..\..\release\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <AdditionalIncludeDirectories>$(SolutionDir)..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
     </ClCompile>
     </ClCompile>
     <Link>
     <Link>
       <SubSystem>Console</SubSystem>
       <SubSystem>Console</SubSystem>
@@ -155,7 +155,7 @@
       <IntrinsicFunctions>true</IntrinsicFunctions>
       <IntrinsicFunctions>true</IntrinsicFunctions>
       <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <CompileAs>CompileAsCpp</CompileAs>
       <CompileAs>CompileAsCpp</CompileAs>
-      <AdditionalIncludeDirectories>$(SolutionDir)..\..\release\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <AdditionalIncludeDirectories>$(SolutionDir)..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
     </ClCompile>
     </ClCompile>
     <Link>
     <Link>
       <SubSystem>Console</SubSystem>
       <SubSystem>Console</SubSystem>

BIN
raylib.rc.o


+ 9 - 8
src/CMakeLists.txt

@@ -45,13 +45,8 @@ endif()
 add_definitions("-DRAYLIB_CMAKE=1")
 add_definitions("-DRAYLIB_CMAKE=1")
 
 
 if(USE_AUDIO)
 if(USE_AUDIO)
-  if (NOT USE_OPENAL_BACKEND)
-    file(GLOB mini_al external/mini_al.c)
-    MESSAGE(STATUS "Audio Backend: mini_al")
-  else()
-    find_package(OpenAL REQUIRED)
-    MESSAGE(STATUS "Audio Backend: OpenAL")
-  endif()
+  file(GLOB mini_al external/mini_al.c)
+  MESSAGE(STATUS "Audio Backend: mini_al")
   file(GLOB stb_vorbis external/stb_vorbis.c)
   file(GLOB stb_vorbis external/stb_vorbis.c)
   set(sources ${raylib_sources} ${mini_al} ${stb_vorbis})
   set(sources ${raylib_sources} ${mini_al} ${stb_vorbis})
 else()
 else()
@@ -73,6 +68,10 @@ if(${PLATFORM} MATCHES "Desktop")
     find_library(OPENGL_LIBRARY OpenGL)
     find_library(OPENGL_LIBRARY OpenGL)
     set(LIBS_PRIVATE ${OPENGL_LIBRARY})
     set(LIBS_PRIVATE ${OPENGL_LIBRARY})
     link_libraries("${LIBS_PRIVATE}")
     link_libraries("${LIBS_PRIVATE}")
+    if (NOT CMAKE_SYSTEM STRLESS "Darwin-18.0.0")
+      add_definitions(-DGL_SILENCE_DEPRECATION)
+      MESSAGE(AUTHOR_WARNING "OpenGL is deprecated starting with macOS 10.14 (Mojave)!")
+    endif()
   elseif(WIN32)
   elseif(WIN32)
     add_definitions(-D_CRT_SECURE_NO_WARNINGS)
     add_definitions(-D_CRT_SECURE_NO_WARNINGS)
   else()
   else()
@@ -131,7 +130,7 @@ if (${OPENGL_VERSION})
   elseif (${OPENGL_VERSION} MATCHES "ES 2.0")
   elseif (${OPENGL_VERSION} MATCHES "ES 2.0")
     set(GRAPHICS "GRAPHICS_API_OPENGL_ES2")
     set(GRAPHICS "GRAPHICS_API_OPENGL_ES2")
   endif()
   endif()
-  if (${SUGGESTED_GRAPHICS} AND NOT "${SUGGESTED_GRAPHICS}" STREQUAL "${GRAPHICS}")
+  if ("${SUGGESTED_GRAPHICS}" AND NOT "${SUGGESTED_GRAPHICS}" STREQUAL "${GRAPHICS}")
     message(WARNING "You are overriding the suggested GRAPHICS=${SUGGESTED_GRAPHICS} with ${GRAPHICS}! This may fail")
     message(WARNING "You are overriding the suggested GRAPHICS=${SUGGESTED_GRAPHICS} with ${GRAPHICS}! This may fail")
   endif()
   endif()
 endif()
 endif()
@@ -146,6 +145,7 @@ include(LibraryPathToLinkerFlags)
 library_path_to_linker_flags(__PKG_CONFIG_LIBS_PRIVATE "${LIBS_PRIVATE}")
 library_path_to_linker_flags(__PKG_CONFIG_LIBS_PRIVATE "${LIBS_PRIVATE}")
 
 
 if(STATIC)
 if(STATIC)
+  MESSAGE(STATUS "Building raylib static library")
   if(${PLATFORM} MATCHES "Web")
   if(${PLATFORM} MATCHES "Web")
     set(CMAKE_STATIC_LIBRARY_SUFFIX ".bc")
     set(CMAKE_STATIC_LIBRARY_SUFFIX ".bc")
   endif()
   endif()
@@ -182,6 +182,7 @@ endif(STATIC)
 
 
 
 
 if(SHARED)
 if(SHARED)
+  MESSAGE(STATUS "Building raylib shared library")
   add_library(raylib SHARED ${sources})
   add_library(raylib SHARED ${sources})
 
 
   target_compile_definitions(raylib
   target_compile_definitions(raylib

+ 8 - 5
src/CMakeOptions.txt

@@ -12,11 +12,6 @@ option(SHARED "Build raylib as a dynamic library" OFF)
 option(STATIC "Build raylib as a static library" ON)
 option(STATIC "Build raylib as a static library" ON)
 option(MACOS_FATLIB  "Build fat library for both i386 and x86_64 on macOS" OFF)
 option(MACOS_FATLIB  "Build fat library for both i386 and x86_64 on macOS" OFF)
 option(USE_AUDIO "Build raylib with audio module" ON)
 option(USE_AUDIO "Build raylib with audio module" ON)
-if(${PLATFORM} MATCHES "Web")
-  cmake_dependent_option(USE_OPENAL_BACKEND "Link raylib with openAL instead of mini-al" ON "USE_AUDIO" OFF)
-else()
-  cmake_dependent_option(USE_OPENAL_BACKEND "Link raylib with openAL instead of mini-al" OFF "USE_AUDIO" OFF)
-endif()
 
 
 enum_option(USE_EXTERNAL_GLFW "OFF;IF_POSSIBLE;ON" "Link raylib against system GLFW instead of embedded one")
 enum_option(USE_EXTERNAL_GLFW "OFF;IF_POSSIBLE;ON" "Link raylib against system GLFW instead of embedded one")
 if(UNIX AND NOT APPLE)
 if(UNIX AND NOT APPLE)
@@ -84,6 +79,14 @@ if(NOT (STATIC OR SHARED))
   message(FATAL_ERROR "Nothing to do if both -DSHARED=OFF and -DSTATIC=OFF...")
   message(FATAL_ERROR "Nothing to do if both -DSHARED=OFF and -DSTATIC=OFF...")
 endif()
 endif()
 
 
+if (DEFINED BUILD_SHARED_LIBS)
+  set(SHARED ${BUILD_SHARED_LIBS})
+  if (${BUILD_SHARED_LIBS})
+    set(STATIC OFF)
+  else()
+    set(STATIC ON)
+  endif()
+endif()
 if(DEFINED SHARED_RAYLIB)
 if(DEFINED SHARED_RAYLIB)
   set(SHARED ${SHARED_RAYLIB})
   set(SHARED ${SHARED_RAYLIB})
   message(DEPRECATION "-DSHARED_RAYLIB is deprecated. Please use -DSHARED instead.")
   message(DEPRECATION "-DSHARED_RAYLIB is deprecated. Please use -DSHARED instead.")

+ 2 - 24
src/Makefile

@@ -63,14 +63,6 @@ RAYLIB_BUILD_MODE    ?= RELEASE
 # NOTE: Some programs like tools could not require audio support
 # NOTE: Some programs like tools could not require audio support
 INCLUDE_AUDIO_MODULE ?= TRUE
 INCLUDE_AUDIO_MODULE ?= TRUE
 
 
-# Use OpenAL Soft backend for audio
-USE_OPENAL_BACKEND   ?= FALSE
-
-# OpenAL Soft audio backend forced on HTML5 and OSX (see below)
-ifeq ($(PLATFORM),PLATFORM_WEB)
-    USE_OPENAL_BACKEND = TRUE
-endif
-
 # Use external GLFW library instead of rglfw module
 # Use external GLFW library instead of rglfw module
 # TODO: Review usage of examples on Linux.
 # TODO: Review usage of examples on Linux.
 USE_EXTERNAL_GLFW    ?= FALSE
 USE_EXTERNAL_GLFW    ?= FALSE
@@ -154,13 +146,6 @@ endif
 #    RAYLIB_PATH       ?= /home/pi/raylib
 #    RAYLIB_PATH       ?= /home/pi/raylib
 #endif
 #endif
 
 
-# Force OpenAL Soft audio backend for OSX platform
-# NOTE 1: mini_al library does not support CoreAudio yet
-# NOTE 2: Required OpenAL libraries should be available on OSX
-ifeq ($(PLATFORM_OS),OSX)
-    USE_OPENAL_BACKEND = TRUE
-endif
-
 ifeq ($(PLATFORM),PLATFORM_WEB)
 ifeq ($(PLATFORM),PLATFORM_WEB)
     # Emscripten required variables
     # Emscripten required variables
     EMSDK_PATH          = C:/emsdk
     EMSDK_PATH          = C:/emsdk
@@ -343,11 +328,6 @@ ifeq ($(RAYLIB_LIBTYPE),SHARED)
     CFLAGS += -fPIC -DBUILD_LIBTYPE_SHARED
     CFLAGS += -fPIC -DBUILD_LIBTYPE_SHARED
 endif
 endif
 
 
-# Use OpenAL Soft backend instead of mini_al
-ifeq ($(USE_OPENAL_BACKEND),TRUE)
-    CFLAGS += -DUSE_OPENAL_BACKEND
-endif
-
 # Use Wayland display on Linux desktop
 # Use Wayland display on Linux desktop
 ifeq ($(PLATFORM),PLATFORM_DESKTOP)
 ifeq ($(PLATFORM),PLATFORM_DESKTOP)
     ifeq ($(PLATFORM_OS), LINUX)
     ifeq ($(PLATFORM_OS), LINUX)
@@ -359,7 +339,7 @@ endif
 
 
 # Define include paths for required headers
 # Define include paths for required headers
 # NOTE: Several external required libraries (stb and others)
 # NOTE: Several external required libraries (stb and others)
-INCLUDE_PATHS = -I. -Iexternal -Iexternal/glfw/include
+INCLUDE_PATHS = -I. -Iexternal/glfw/include
 
 
 ifeq ($(PLATFORM),PLATFORM_DESKTOP)
 ifeq ($(PLATFORM),PLATFORM_DESKTOP)
     ifeq ($(PLATFORM_OS),BSD)
     ifeq ($(PLATFORM_OS),BSD)
@@ -426,9 +406,7 @@ endif
 ifeq ($(INCLUDE_AUDIO_MODULE),TRUE)
 ifeq ($(INCLUDE_AUDIO_MODULE),TRUE)
     OBJS += audio.o
     OBJS += audio.o
     OBJS += stb_vorbis.o
     OBJS += stb_vorbis.o
-    ifeq ($(USE_OPENAL_BACKEND),FALSE)
-        OBJS += mini_al.o
-    endif
+    OBJS += mini_al.o
 endif
 endif
 
 
 ifeq ($(PLATFORM),PLATFORM_ANDROID)
 ifeq ($(PLATFORM),PLATFORM_ANDROID)

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 28 - 618
src/audio.c


+ 1 - 1
src/config.h

@@ -25,7 +25,7 @@
 *
 *
 **********************************************************************************************/
 **********************************************************************************************/
 
 
-#define RAYLIB_VERSION  "2.0"
+#define RAYLIB_VERSION  "2.1-dev"
 
 
 // Edit to control what features Makefile'd raylib is compiled with
 // Edit to control what features Makefile'd raylib is compiled with
 #if defined(RAYLIB_CMAKE)
 #if defined(RAYLIB_CMAKE)

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно