Project

General

Profile

Revision 246

convert to lists

View differences:

ent.c
215 215
}
216 216
int16_t (map_get_x_screen)(const map_t *p){ return (-x_origin)*scale; }
217 217
int16_t (map_get_y_screen)(const map_t *p){ return (-y_origin)*scale; }
218
int16_t (map_get_width)   (const map_t *p){ return sprite_get_w(p->background); }
219
int16_t (map_get_height)  (const map_t *p){ return sprite_get_h(p->background); }
218 220
int (map_collides_point)(const map_t *p, double x, double y){
219 221
    const uint16_t w = sprite_get_w(p->background), h = sprite_get_h(p->background);
220 222
    int16_t x_ = x, y_ = y;

Also available in: Unified diff