- colour_shuffle();
- colours[0] += 16;
- colours[1] += 16;
- colours[2] += 16;
- colour_anim = 0;
-
- ClearRectangle(scoreBitmap, 0, 0, SCR_FIELDX * TILEX, SCOREY);
- BlitBitmap(botBitmap, scoreBitmap,
- 11 * SCOREX, colours[0] * SCOREY, 3 * SCOREX, SCOREY,
- 1 * SCOREX, 0); /* 0-63 time */
- BlitBitmap(botBitmap, scoreBitmap,
- 18 * SCOREX, colours[0] * SCOREY, 6 * SCOREX, SCOREY,
- 11 * SCOREX, 0); /* 112-207 diamonds */
- BlitBitmap(botBitmap, scoreBitmap,
- 14 * SCOREX, colours[0] * SCOREY, 4 * SCOREX, SCOREY,
- 24 * SCOREX, 0); /* 256-319 score */
-}
-
-
-/* draw current values for time, gems and score counter */
-
-void game_blitscore(void)
-{
- unsigned int i;
-
- xdebug("game_blitscore");
-
- i = (lev.time + 4) / 5;
- BlitBitmap(botBitmap, scoreBitmap,
- (i % 10) * SCOREX, colours[1] * SCOREY, SCOREX, SCOREY,
- 7 * SCOREX, 0); i /= 10;
- BlitBitmap(botBitmap, scoreBitmap,
- (i % 10) * SCOREX, colours[1] * SCOREY, SCOREX, SCOREY,
- 6 * SCOREX, 0); i /= 10;
- BlitBitmap(botBitmap, scoreBitmap,
- (i % 10) * SCOREX, colours[1] * SCOREY, SCOREX, SCOREY,
- 5 * SCOREX, 0); i /= 10;
- BlitBitmap(botBitmap, scoreBitmap,
- (i % 10) * SCOREX, colours[1] * SCOREY, SCOREX, SCOREY,
- 4 * SCOREX, 0);
-
- i = lev.score;
- BlitBitmap(botBitmap, scoreBitmap,
- (i % 10) * SCOREX, colours[1] * SCOREY, SCOREX, SCOREY,
- 31 * SCOREX, 0); i /= 10;
- BlitBitmap(botBitmap, scoreBitmap,
- (i % 10) * SCOREX, colours[1] * SCOREY, SCOREX, SCOREY,
- 30 * SCOREX, 0); i /= 10;
- BlitBitmap(botBitmap, scoreBitmap,
- (i % 10) * SCOREX, colours[1] * SCOREY, SCOREX, SCOREY,
- 29 * SCOREX, 0); i /= 10;
- BlitBitmap(botBitmap, scoreBitmap,
- (i % 10) * SCOREX, colours[1] * SCOREY, SCOREX, SCOREY,
- 28 * SCOREX, 0);
-
- if (lev.home == 0)
- {
- BlitBitmap(botBitmap, scoreBitmap,
- 12 * SCOREX, 24 * SCOREY, 12 * SCOREX, SCOREY,
- 14 * SCOREX, 0); /* relax */
-
- goto done;
- }
-
- if (ply1.alive + ply2.alive >= lev.home && lev.required == 0)
- {
- BlitBitmap(botBitmap, scoreBitmap,
- 24 * SCOREX, colours[2] * SCOREY, 12 * SCOREX, SCOREY,
- 14 * SCOREX, 0); /* find the exit */
-
- goto done;
- }
-
- if (ply1.alive + ply2.alive < lev.home)
- {
- if (++colour_anim > 11)
- colour_anim = 0;
-
- if (colour_anim < 6)
- {
- BlitBitmap(botBitmap, scoreBitmap,
- 0, 24 * SCOREY, 12 * SCOREX, SCOREY,
- 14 * SCOREX, 0); /* forget it */
-
- goto done;
- }
-
- BlitBitmap(botBitmap, scoreBitmap,
- 18 * SCOREX, colours[0] * SCOREY, 6 * SCOREX, SCOREY,
- 15 * SCOREX, 0); /* diamonds */
- }
-
- i = lev.required;
- BlitBitmap(botBitmap, scoreBitmap,
- (i % 10) * SCOREX, colours[1] * SCOREY, SCOREX, SCOREY,
- 20 * SCOREX, 0);
- i /= 10;
- BlitBitmap(botBitmap, scoreBitmap,
- (i % 10) * SCOREX, colours[1] * SCOREY, SCOREX, SCOREY,
- 19 * SCOREX, 0);
- i /= 10;
- BlitBitmap(botBitmap, scoreBitmap,
- (i % 10) * SCOREX, colours[1] * SCOREY, SCOREX, SCOREY,
- 18 * SCOREX, 0);
- i /= 10;
- BlitBitmap(botBitmap, scoreBitmap,
- (i % 10) * SCOREX, colours[1] * SCOREY, SCOREX, SCOREY,
- 17 * SCOREX, 0);
-
- done: