Procházet zdrojové kódy

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.
pull/1269/head
raysan5 před 5 roky
rodič
revize
82fca43406
7 změnil soubory, kde provedl 6 přidání a 6 odebrání
  1. binární
      examples/textures/resources/button.png
  2. binární
      examples/textures/resources/buttonfx.wav
  3. binární
      examples/textures/resources/explosion.png
  4. binární
      examples/textures/resources/smoke.png
  5. binární
      examples/textures/resources/spark_flame.png
  6. +2
    -2
      examples/textures/textures_particles_blending.c
  7. +4
    -4
      examples/textures/textures_sprite_explosion.c

binární
examples/textures/resources/button.png Zobrazit soubor

Před Za
Šířka: 200  |  Výška: 240  |  Velikost: 32 KiB Šířka: 224  |  Výška: 318  |  Velikost: 23 KiB

binární
examples/textures/resources/buttonfx.wav Zobrazit soubor


binární
examples/textures/resources/explosion.png Zobrazit soubor

Před Za
Šířka: 1024  |  Výška: 768  |  Velikost: 1.0 MiB Šířka: 1024  |  Výška: 1024  |  Velikost: 134 KiB

binární
examples/textures/resources/smoke.png Zobrazit soubor

Před Za
Šířka: 128  |  Výška: 128  |  Velikost: 15 KiB

binární
examples/textures/resources/spark_flame.png Zobrazit soubor

Před Za
Šířka: 128  |  Výška: 128  |  Velikost: 7.4 KiB

+ 2
- 2
examples/textures/textures_particles_blending.c Zobrazit soubor

@ -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;
}
}

+ 4
- 4
examples/textures/textures_sprite_explosion.c Zobrazit soubor

@ -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++;

Načítá se…
Zrušit
Uložit