You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
404 B
22 lines
404 B
#ifndef SPRITE_H_
|
|
#define SPRITE_H_
|
|
#include "raylib.h"
|
|
|
|
typedef struct Sprite {
|
|
Texture2D *texture;
|
|
float x;
|
|
float y;
|
|
float destX;
|
|
float destY;
|
|
int hasDestination;
|
|
int selected;
|
|
} Sprite;
|
|
|
|
void SpriteAdd(Sprite *sprites, int *spriteAmount, Texture2D *texture, int x, int y);
|
|
|
|
void DrawSprite(Sprite *sprite);
|
|
|
|
Sprite * SpriteCreate(Texture2D *texture, int x, int y);
|
|
|
|
#endif
|