Ignore:
Timestamp:
Dec 23, 2002, 5:21:38 PM (20 years ago)
Author:
Sam Hocevar
Message:
  • new timestamp for a new snapshot.
  • lots of sanity checks in collide.c.
  • moved usleep() to graphics.c.
  • added random key generator in the dummy driver.
  • cosmetic changes in the energy bars.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/overlay.c

    r61 r63  
    44 *                 All Rights Reserved
    55 *
    6  *   $Id: overlay.c,v 1.1 2002/12/23 15:06:13 sam Exp $
     6 *   $Id: overlay.c,v 1.2 2002/12/23 16:21:38 sam Exp $
    77 *
    88 *   This program is free software; you can redistribute it and/or modify
     
    3232    /* Draw life jauge */
    3333    gfx_color( GRAY );
    34     gfx_goto( 2, 1 );
     34    gfx_goto( 4, 1 );
    3535    gfx_putstr( dots30 );
    3636
     
    4848    }
    4949
    50     gfx_goto( 2, 1 );
     50    gfx_goto( 4, 1 );
    5151    gfx_putstr( dashes30 + ( MAX_LIFE - g->p->life ) * 30 / MAX_LIFE );
    5252
    5353    gfx_color( WHITE );
    5454    gfx_goto( 1, 1 );
     55    gfx_putstr( "L |" );
     56    gfx_goto( 34, 1 );
    5557    gfx_putstr( "|" );
    56     gfx_goto( 32, 1 );
    57     gfx_putstr( "| L" );
    5858
    5959    /* Draw weapon jauge */
    6060    gfx_color( GRAY );
    61     gfx_goto( 38, 1 );
     61    gfx_goto( 42, 1 );
    6262    gfx_putstr( dots30 + 10 );
    6363
     
    7575    }
    7676
    77     gfx_goto( 38, 1 );
     77    gfx_goto( 42, 1 );
    7878    gfx_putstr( dashes30 + 10 + ( MAX_SPECIAL - g->p->special ) * 20 / MAX_SPECIAL );
    7979
    8080    gfx_color( WHITE );
    81     gfx_goto( 37, 1 );
     81    gfx_goto( 39, 1 );
     82    gfx_putstr( "S |" );
     83    gfx_goto( 62, 1 );
    8284    gfx_putstr( "|" );
    83     gfx_goto( 58, 1 );
    84     gfx_putstr( "| S" );
    8585}
    8686
Note: See TracChangeset for help on using the changeset viewer.