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.

26 lines
563 B

#ifndef SPRITE_H_
#define SPRITE_H_
#include "raylib.h"
#include "IsometricMap/isometricMap.h"
typedef struct Sprite {
Texture2D *texture;
float x;
float y;
float z;
float destX;
float destY;
int hasDestination;
int selected;
} Sprite;
// @param deprecated
void SpriteAdd(Sprite *sprites, int *spriteAmount, Texture2D *texture, int x, int y);
void DrawSpriteToWorld(Sprite *sprite, IsometricMap **map, Camera2D *camera);
void DrawSpriteToScreen(Sprite *sprite);
Sprite * SpriteCreate(Texture2D *texture, int x, int y);
#endif