浏览代码

[example] Update textures_sprite_explosion

pull/1269/head
raysan5 4 年前
父节点
当前提交
6b9e49e965
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      examples/textures/textures_sprite_explosion.c
  2. 二进制
      examples/textures/textures_sprite_explosion.png

+ 2
- 2
examples/textures/textures_sprite_explosion.c 查看文件

@ -32,8 +32,8 @@ int main(void)
Texture2D explosion = LoadTexture("resources/explosion.png");
// Init variables for animation
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 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;

二进制
examples/textures/textures_sprite_explosion.png 查看文件

之前 之后
宽度: 800  |  高度: 450  |  大小: 47 KiB 宽度: 800  |  高度: 450  |  大小: 62 KiB

正在加载...
取消
保存