breakhack/src/monster.c

18 lines
229 B
C
Raw Normal View History

#include "monster.h"
#include "util.h"
Monster*
monster_create()
{
Monster *m = ec_malloc(sizeof(Monster));
m->sprite = sprite_create();
return m;
}
void
monster_destroy(Monster *m)
{
sprite_destroy(m->sprite);
free(m);
}