Browse Source

Update examples and remove .exe

raysan5 11 năm trước cách đây
mục cha
commit
01651af08a

+ 1 - 0
.gitignore

@@ -12,6 +12,7 @@ src/vector3.o
 src/stb_image.o
 src/*.exe
 examples/*.o
+examples/*.exe
 
 # Ignore thumbnails created by windows
 Thumbs.db

BIN
examples/ex01_basic_window.exe


BIN
examples/ex02a_logo_raylib.exe


BIN
examples/ex02b_basic_shapes.exe


BIN
examples/ex02c_color_palette.exe


+ 4 - 4
examples/ex03a_input_keys.c

@@ -30,10 +30,10 @@ int main()
     {
         // Update
         //----------------------------------------------------------------------------------
-        if (IsKeyPressed(KEY_RIGHT)) ballPosition.x += 0.8;
-        if (IsKeyPressed(KEY_LEFT)) ballPosition.x -= 0.8;
-        if (IsKeyPressed(KEY_UP)) ballPosition.y -= 0.8;
-        if (IsKeyPressed(KEY_DOWN)) ballPosition.y += 0.8;
+        if (IsKeyDown(KEY_RIGHT)) ballPosition.x += 0.8;
+        if (IsKeyDown(KEY_LEFT)) ballPosition.x -= 0.8;
+        if (IsKeyDown(KEY_UP)) ballPosition.y -= 0.8;
+        if (IsKeyDown(KEY_DOWN)) ballPosition.y += 0.8;
         //----------------------------------------------------------------------------------
         
         // Draw

BIN
examples/ex03a_input_keys.exe


+ 0 - 1
examples/ex03b_input_mouse.c

@@ -19,7 +19,6 @@ int main()
     int screenHeight = 450;
     
     Vector2 ballPosition = { -100.0, -100.0 };
-    int counter = 0;
     int mouseX, mouseY;
     
     InitWindow(screenWidth, screenHeight, "raylib example 06 - mouse input");

BIN
examples/ex03b_input_mouse.exe


BIN
examples/ex03c_input_gamepad.exe


BIN
examples/ex04a_textures.exe


BIN
examples/ex04b_texture_rectangle.exe


BIN
examples/ex05a_sprite_fonts.exe


BIN
examples/ex05b_rbmf_fonts.exe


+ 1 - 1
examples/ex06a_color_select.c

@@ -37,7 +37,7 @@ int main()
     
     Vector2 mousePoint;
     
-    InitWindowEx(screenWidth, screenHeight, "raylib example 06a - color selection", false, "resources/mouse.png");
+    InitWindow(screenWidth, screenHeight, "raylib example 06a - color selection");
     
     SetTargetFPS(60);
     //--------------------------------------------------------------------------------------

BIN
examples/ex06a_color_select.exe


BIN
examples/ex06b_logo_anim.exe


BIN
examples/ex06c_font_select.exe


BIN
examples/ex07a_3d_mode.exe


BIN
examples/ex07b_3d_shapes.exe


+ 1 - 1
examples/ex07c_3d_models.c

@@ -27,7 +27,7 @@ int main()
     
     SetTargetFPS(60);   // Set our game to run at 60 frames-per-second
     
-    Texture2D texture = LoadTexture("resources/catwhite.png");
+    Texture2D texture = LoadTexture("resources/catsham.png");
     Model cat = LoadModel("resources/cat.obj");
     SetModelTexture(&cat, texture); // Link texture to model
     //--------------------------------------------------------------------------------------

BIN
examples/ex07c_3d_models.exe


BIN
examples/ex08_audio.exe