summaryrefslogtreecommitdiffhomepage
path: root/examples/textures
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2020-05-31 23:31:43 +0200
committerraysan5 <[email protected]>2020-05-31 23:31:43 +0200
commit82fca4340621d51f70b2fa832caaede1deb437dc (patch)
tree6ad8a7244e705f2d0878e5caaaff2244352cb4ad /examples/textures
parent0e1d7d643081929338ba7cc7c5f85736ac632e92 (diff)
downloadraylib-82fca4340621d51f70b2fa832caaede1deb437dc.tar.gz
raylib-82fca4340621d51f70b2fa832caaede1deb437dc.zip
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.
Diffstat (limited to 'examples/textures')
-rw-r--r--examples/textures/resources/button.pngbin33094 -> 23459 bytes
-rw-r--r--examples/textures/resources/buttonfx.wavbin57364 -> 88244 bytes
-rw-r--r--examples/textures/resources/explosion.pngbin1095001 -> 136842 bytes
-rw-r--r--examples/textures/resources/smoke.pngbin15387 -> 0 bytes
-rw-r--r--examples/textures/resources/spark_flame.pngbin0 -> 7574 bytes
-rw-r--r--examples/textures/textures_particles_blending.c4
-rw-r--r--examples/textures/textures_sprite_explosion.c8
7 files changed, 6 insertions, 6 deletions
diff --git a/examples/textures/resources/button.png b/examples/textures/resources/button.png
index a50585db..99a383b6 100644
--- a/examples/textures/resources/button.png
+++ b/examples/textures/resources/button.png
Binary files differ
diff --git a/examples/textures/resources/buttonfx.wav b/examples/textures/resources/buttonfx.wav
index 7d161ad7..b93b0ca0 100644
--- a/examples/textures/resources/buttonfx.wav
+++ b/examples/textures/resources/buttonfx.wav
Binary files differ
diff --git a/examples/textures/resources/explosion.png b/examples/textures/resources/explosion.png
index ed532163..42fbffb8 100644
--- a/examples/textures/resources/explosion.png
+++ b/examples/textures/resources/explosion.png
Binary files differ
diff --git a/examples/textures/resources/smoke.png b/examples/textures/resources/smoke.png
deleted file mode 100644
index f0f00a79..00000000
--- a/examples/textures/resources/smoke.png
+++ /dev/null
Binary files differ
diff --git a/examples/textures/resources/spark_flame.png b/examples/textures/resources/spark_flame.png
new file mode 100644
index 00000000..ab24b0ec
--- /dev/null
+++ b/examples/textures/resources/spark_flame.png
Binary files 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++;