Searched refs:SPR_SIZE (Results 1 – 3 of 3) sorted by relevance
/dports/games/beret/beret-freebsd-ab3c397400be60ce69903389727acf6cdf0a3119/ |
H A D | physics.c | 22 #define SPR_SIZE 30 macro 213 int tl = (thisl-1)/SPR_SIZE, tt = (thist-1)/SPR_SIZE; in get_collisions() 214 int tr = thisr/SPR_SIZE, tb = thisb/SPR_SIZE; in get_collisions() 276 for (i = thisl/SPR_SIZE; i <= (thisr-1)/SPR_SIZE; i++) { in get_collisions() 277 for (j = thist/SPR_SIZE; j <= (thisb-1)/SPR_SIZE; j++) { in get_collisions() 282 thist/SPR_SIZE, nocheck,1); in get_collisions() 284 thist/SPR_SIZE, nocheck,1); in get_collisions() 286 (thist-1)/SPR_SIZE, nocheck,1); in get_collisions() 288 thisb/SPR_SIZE, nocheck,1); in get_collisions() 296 thisb/SPR_SIZE, nocheck,1); in get_collisions() [all …]
|
H A D | game.c | 1834 temp1 = temp1-temp1%SPR_SIZE+SPR_SIZE/2; in set_start_pos() 1837 temp1 = temp1-temp1%(SPR_SIZE/2)+SPR_SIZE/4; in set_start_pos() 2334 apply_sprite(i*SPR_SIZE, j*SPR_SIZE, in draw_map() 2337 apply_sprite(i*SPR_SIZE, j*SPR_SIZE, in draw_map() 2342 apply_sprite(i*SPR_SIZE, j*SPR_SIZE, in draw_map() 2345 apply_sprite(i*SPR_SIZE, j*SPR_SIZE, in draw_map() 2355 apply_sprite(i*SPR_SIZE, j*SPR_SIZE, in draw_map() 2359 apply_sprite(i*SPR_SIZE, j*SPR_SIZE, in draw_map() 3568 displthing.x = ((i-2)%24)*SPR_SIZE+SPR_SIZE; in draw_inventory() 3569 displthing.y = ((i-2)/24)*SPR_SIZE+SPR_SIZE; in draw_inventory() [all …]
|
H A D | thing.c | 27 #define SPR_SIZE 30 macro 248 this->x <= (xpos+1)*SPR_SIZE-CORNER && this->x+this->width >= xpos*SPR_SIZE+CORNER) || in tile_collision() 250 this->y+CORNER > (ypos+1)*SPR_SIZE && in tile_collision() 251 this->x <= (xpos+1)*SPR_SIZE-CORNER && this->x+this->width >= xpos*SPR_SIZE+CORNER) || in tile_collision() 255 this->x+CORNER > (xpos+1)*SPR_SIZE))) { in tile_collision() 1546 this->width = SPR_SIZE*3; in make_thing() 1547 this->height = SPR_SIZE*3; in make_thing() 1554 this->width = SPR_SIZE*5; in make_thing() 1555 this->height = SPR_SIZE*5; in make_thing() 1594 if (abs(bcx-tcx) < 9*SPR_SIZE && abs(bcy-tcy) < 6*SPR_SIZE && in move_fake() [all …]
|