Ignore:
Timestamp:
Dec 15, 2002, 4:41:32 AM (20 years ago)
Author:
Sam Hocevar
Message:
  • real Debian package files.
  • two new types of aliens. only one rules.
  • removed gfx_write in favor of gfx_putchar and gfx_putstr.
  • added bonuses at alien death. they do nothing yet.
  • seeker missiles. 'b' to test.
  • weapon resolution is now 16*char. needs to be generalized.
  • fixed the supernova bugs. center could collide with the tunnel, and the last frame was badly displayed.
  • lots of cleanups everywhere.
File:
1 edited

Legend:

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

    r17 r19  
    1010
    1111    p->x = g->w / 2;
    12     p->y = g->h - 3;
     12    p->y = g->h - 2;
    1313    p->dir = 0;
    1414    p->weapon = 0;
     
    2525void draw_player( game *g, player *p )
    2626{
    27     GFX_GOTO( p->x + 2, p->y - 2 );
    28     GFX_COLOR( GREEN );
    29     GFX_WRITE( '/' );
    30     GFX_WRITE( '\\' );
    31     GFX_GOTO( p->x + 1, p->y - 1 );
    32     GFX_WRITE( '(' );
    33     GFX_COLOR( YELLOW );
    34     GFX_WRITE( '(' );
    35     GFX_WRITE( ')' );
    36     GFX_COLOR( GREEN );
    37     GFX_WRITE( ')' );
    38     GFX_GOTO( p->x, p->y );
    39     GFX_COLOR( GREEN );
    40     GFX_WRITE( 'I' );
    41     GFX_WRITE( '<' );
    42     GFX_WRITE( '_' );
    43     GFX_WRITE( '_' );
    44     GFX_WRITE( '>' );
    45     GFX_WRITE( 'I' );
     27    gfx_goto( p->x + 2, p->y - 2 );
     28    gfx_color( GREEN );
     29    gfx_putstr( "/\\" );
     30    gfx_goto( p->x + 1, p->y - 1 );
     31    gfx_putchar( '(' );
     32    gfx_color( YELLOW );
     33    gfx_putstr( "()" );
     34    gfx_color( GREEN );
     35    gfx_putchar( ')' );
     36    gfx_goto( p->x, p->y );
     37    gfx_color( GREEN );
     38    gfx_putstr( "I<__>I" );
    4639}
    4740
Note: See TracChangeset for help on using the changeset viewer.