#include "Sprite.h" #include "PreShiftedBitmap.h" #include void Sprite_init(Sprite *s, const struct PreShiftedBitmap *bitmap) { assert(s); assert(bitmap); assert(bitmap->height > 0); assert(bitmap->height <= MAX_BITMAP_HEIGHT); s->active = TRUE; s->x = 0; s->y = 0; s->dx = 0; s->dy = 0; s->bm = bitmap; s->h = bitmap->height; s->bitmapIndex = 0; s->timeToLive = 0; }