- Afegeix el camp "bmp" amb el nom del gif, per a poder usar-lo durant l'edició
This commit is contained in:
@@ -28,6 +28,7 @@ namespace actor
|
|||||||
{
|
{
|
||||||
actor_t *act = (actor_t*)malloc(sizeof(actor_t));
|
actor_t *act = (actor_t*)malloc(sizeof(actor_t));
|
||||||
strcpy(act->name, name);
|
strcpy(act->name, name);
|
||||||
|
strcpy(act->bmp, bmp);
|
||||||
act->pos = p;
|
act->pos = p;
|
||||||
act->size = s;
|
act->size = s;
|
||||||
act->surface = draw::loadSurface(bmp);
|
act->surface = draw::loadSurface(bmp);
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ namespace actor
|
|||||||
{
|
{
|
||||||
char name[16];
|
char name[16];
|
||||||
draw::surface *surface;
|
draw::surface *surface;
|
||||||
|
char bmp[16];
|
||||||
SDL_Rect bmp_rect;
|
SDL_Rect bmp_rect;
|
||||||
SDL_Point bmp_offset;
|
SDL_Point bmp_offset;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user