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.
30 lines
701 B
30 lines
701 B
#ifndef SPRITE_H_
|
|
#define SPRITE_H_
|
|
#include "raylib.h"
|
|
#include "IsometricMap/isometricMap.h"
|
|
#include "Textures/animationHandler.h"
|
|
#include "Textures/textureatlas.h"
|
|
#include "DepthSorting/bucket.h"
|
|
|
|
typedef struct Sprite {
|
|
AnimationHandler *animationHandler;
|
|
Texture2D *texture;
|
|
float x;
|
|
float y;
|
|
float z;
|
|
float destX;
|
|
float destY;
|
|
int hasDestination;
|
|
int selected;
|
|
float depth;
|
|
Bucket *sortable;
|
|
} Sprite;
|
|
|
|
void DrawSpriteToWorld(Sprite *sprite, IsometricMap **map, Camera2D *camera);
|
|
void DrawSpriteToScreen(Sprite *sprite);
|
|
void SpriteUpdateAnimation(Sprite *sprite);
|
|
|
|
Sprite * SpriteCreate(TextureAtlas *atlas, int textureID, int x, int y);
|
|
|
|
#endif
|