Project

General

Profile

Revision 179

changed stuff

View differences:

sprite.c
40 40
    free(p);
41 41
}
42 42

  
43
void (sprite_set_x)     (sprite_t *p, int16_t x){ p->x = x; }
44
void (sprite_set_y)     (sprite_t *p, int16_t y){ p->y = y; }
45
void (sprite_set_pos)   (sprite_t *p, int16_t x, int16_t y){ sprite_set_x(p, x); sprite_set_y(p, y); }
43
void (sprite_set_pos)   (sprite_t *p, int16_t x, int16_t y){ p->x = x; p->y = y; }
46 44
void (sprite_set_angle) (sprite_t *p, double angle){ p->theta = angle; }
47 45
void (sprite_set_center)(sprite_t *p, int16_t u0, int16_t v0){ p->u0 = u0; p->v0 = v0; }
48 46

  

Also available in: Unified diff