ref: c293a78c65a8bcadefae4e1f180286f87c69c930
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; }