From 82fca4340621d51f70b2fa832caaede1deb437dc Mon Sep 17 00:00:00 2001 From: raysan5 Date: Sun, 31 May 2020 23:31:43 +0200 Subject: Replaced some resources for better licensing Some resources used in examples have not a clear license, so, I'm replacing some of them for clearly licensed versions or resources created by me under CC0. License file to be added. --- examples/textures/resources/button.png | Bin 33094 -> 23459 bytes examples/textures/resources/buttonfx.wav | Bin 57364 -> 88244 bytes examples/textures/resources/explosion.png | Bin 1095001 -> 136842 bytes examples/textures/resources/smoke.png | Bin 15387 -> 0 bytes examples/textures/resources/spark_flame.png | Bin 0 -> 7574 bytes examples/textures/textures_particles_blending.c | 4 ++-- examples/textures/textures_sprite_explosion.c | 8 ++++---- 7 files changed, 6 insertions(+), 6 deletions(-) delete mode 100644 examples/textures/resources/smoke.png create mode 100644 examples/textures/resources/spark_flame.png (limited to 'examples/textures') diff --git a/examples/textures/resources/button.png b/examples/textures/resources/button.png index a50585db..99a383b6 100644 Binary files a/examples/textures/resources/button.png and b/examples/textures/resources/button.png differ diff --git a/examples/textures/resources/buttonfx.wav b/examples/textures/resources/buttonfx.wav index 7d161ad7..b93b0ca0 100644 Binary files a/examples/textures/resources/buttonfx.wav and b/examples/textures/resources/buttonfx.wav differ diff --git a/examples/textures/resources/explosion.png b/examples/textures/resources/explosion.png index ed532163..42fbffb8 100644 Binary files a/examples/textures/resources/explosion.png and b/examples/textures/resources/explosion.png differ diff --git a/examples/textures/resources/smoke.png b/examples/textures/resources/smoke.png deleted file mode 100644 index f0f00a79..00000000 Binary files a/examples/textures/resources/smoke.png and /dev/null differ diff --git a/examples/textures/resources/spark_flame.png b/examples/textures/resources/spark_flame.png new file mode 100644 index 00000000..ab24b0ec Binary files /dev/null and b/examples/textures/resources/spark_flame.png differ diff --git a/examples/textures/textures_particles_blending.c b/examples/textures/textures_particles_blending.c index d094c6c2..3e3cd844 100644 --- a/examples/textures/textures_particles_blending.c +++ b/examples/textures/textures_particles_blending.c @@ -48,7 +48,7 @@ int main(void) float gravity = 3.0f; - Texture2D smoke = LoadTexture("resources/smoke.png"); + Texture2D smoke = LoadTexture("resources/spark_flame.png"); int blending = BLEND_ALPHA; @@ -85,7 +85,7 @@ int main(void) if (mouseTail[i].alpha <= 0.0f) mouseTail[i].active = false; - mouseTail[i].rotation += 5.0f; + mouseTail[i].rotation += 2.0f; } } diff --git a/examples/textures/textures_sprite_explosion.c b/examples/textures/textures_sprite_explosion.c index 823c1b8a..02f06aab 100644 --- a/examples/textures/textures_sprite_explosion.c +++ b/examples/textures/textures_sprite_explosion.c @@ -11,8 +11,8 @@ #include "raylib.h" -#define NUM_FRAMES 8 -#define NUM_LINES 6 +#define NUM_FRAMES_PER_LINE 5 +#define NUM_LINES 5 int main(void) { @@ -32,7 +32,7 @@ int main(void) Texture2D explosion = LoadTexture("resources/explosion.png"); // Init variables for animation - int frameWidth = explosion.width/NUM_FRAMES; // Sprite one frame rectangle width + int frameWidth = explosion.width/NUM_FRAMES_PER_LINE; // Sprite one frame rectangle width int frameHeight = explosion.height/NUM_LINES; // Sprite one frame rectangle height int currentFrame = 0; int currentLine = 0; @@ -73,7 +73,7 @@ int main(void) { currentFrame++; - if (currentFrame >= NUM_FRAMES) + if (currentFrame >= NUM_FRAMES_PER_LINE) { currentFrame = 0; currentLine++; -- cgit v1.2.3