ref: 1f1a8bbd7ce97df5e6798b907de931105387a67a
dir: /sprite.c/
#include <u.h> #include <libc.h> #include <draw.h> #include <stdio.h> #include "dormer.h" Sprite* mksprite(Canvas *c, char *path) { c->spritev[c->si].image = readimage(display, open(path, OREAD), 0); Sprite *s = &c->spritev[c->si++]; return s; } void mvsprite(Sprite *s, int x, int y) { s->x = x; s->y = y; }