diff options
Diffstat (limited to 'apps/plugins/bubbles.c')
-rw-r--r-- | apps/plugins/bubbles.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/plugins/bubbles.c b/apps/plugins/bubbles.c index 4146b45b36..44d172c4ee 100644 --- a/apps/plugins/bubbles.c +++ b/apps/plugins/bubbles.c | |||
@@ -1469,17 +1469,17 @@ static void bubbles_drawboard(struct game_context* bb) { | |||
1469 | ROW_HEIGHT*(BB_HEIGHT-2)+BUBBLE_HEIGHT); | 1469 | ROW_HEIGHT*(BB_HEIGHT-2)+BUBBLE_HEIGHT); |
1470 | 1470 | ||
1471 | /* draw arrow */ | 1471 | /* draw arrow */ |
1472 | tipx = SHOTX+BUBBLE_WIDTH/2+(((sin_int(bb->angle)>>4)*BUBBLE_WIDTH*3/2)>>10); | 1472 | tipx = SHOTX+BUBBLE_WIDTH/2+(((fp14_sin(bb->angle)>>4)*BUBBLE_WIDTH*3/2)>>10); |
1473 | tipy = SHOTY+BUBBLE_HEIGHT/2-(((cos_int(bb->angle)>>4)*BUBBLE_HEIGHT*3/2)>>10); | 1473 | tipy = SHOTY+BUBBLE_HEIGHT/2-(((fp14_cos(bb->angle)>>4)*BUBBLE_HEIGHT*3/2)>>10); |
1474 | 1474 | ||
1475 | rb->lcd_drawline(SHOTX+BUBBLE_WIDTH/2+(((sin_int(bb->angle)>>4)*BUBBLE_WIDTH/2)>>10), | 1475 | rb->lcd_drawline(SHOTX+BUBBLE_WIDTH/2+(((fp14_sin(bb->angle)>>4)*BUBBLE_WIDTH/2)>>10), |
1476 | SHOTY+BUBBLE_HEIGHT/2-(((cos_int(bb->angle)>>4)*BUBBLE_HEIGHT/2)>>10), | 1476 | SHOTY+BUBBLE_HEIGHT/2-(((fp14_cos(bb->angle)>>4)*BUBBLE_HEIGHT/2)>>10), |
1477 | tipx, tipy); | 1477 | tipx, tipy); |
1478 | xlcd_filltriangle(tipx, tipy, | 1478 | xlcd_filltriangle(tipx, tipy, |
1479 | tipx+(((sin_int(bb->angle-135)>>4)*BUBBLE_WIDTH/3)>>10), | 1479 | tipx+(((fp14_sin(bb->angle-135)>>4)*BUBBLE_WIDTH/3)>>10), |
1480 | tipy-(((cos_int(bb->angle-135)>>4)*BUBBLE_HEIGHT/3)>>10), | 1480 | tipy-(((fp14_cos(bb->angle-135)>>4)*BUBBLE_HEIGHT/3)>>10), |
1481 | tipx+(((sin_int(bb->angle+135)>>4)*BUBBLE_WIDTH/3)>>10), | 1481 | tipx+(((fp14_sin(bb->angle+135)>>4)*BUBBLE_WIDTH/3)>>10), |
1482 | tipy-(((cos_int(bb->angle+135)>>4)*BUBBLE_HEIGHT/3)>>10)); | 1482 | tipy-(((fp14_cos(bb->angle+135)>>4)*BUBBLE_HEIGHT/3)>>10)); |
1483 | 1483 | ||
1484 | /* draw text */ | 1484 | /* draw text */ |
1485 | rb->lcd_getstringsize(level, &w, &h); | 1485 | rb->lcd_getstringsize(level, &w, &h); |
@@ -1524,8 +1524,8 @@ static int bubbles_fire(struct game_context* bb) { | |||
1524 | 1524 | ||
1525 | /* get current bubble */ | 1525 | /* get current bubble */ |
1526 | bubblecur = bb->queue[bb->nextinq]; | 1526 | bubblecur = bb->queue[bb->nextinq]; |
1527 | shotxinc = ((sin_int(bb->angle)>>4)*BUBBLE_WIDTH)/3; | 1527 | shotxinc = ((fp14_sin(bb->angle)>>4)*BUBBLE_WIDTH)/3; |
1528 | shotyinc = ((-1*(cos_int(bb->angle)>>4))*BUBBLE_HEIGHT)/3; | 1528 | shotyinc = ((-1*(fp14_cos(bb->angle)>>4))*BUBBLE_HEIGHT)/3; |
1529 | shotxofs = shotyofs = 0; | 1529 | shotxofs = shotyofs = 0; |
1530 | 1530 | ||
1531 | /* advance the queue */ | 1531 | /* advance the queue */ |