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/tunnel.c

    r17 r19  
    135135    int i;
    136136
     137    gfx_color( RED );
     138
    137139    for( i = 0; i < g->h ; i++ )
    138140    {
    139         char c;
     141        char *str;
    140142
    141143        if( wall[i] < 0 || wall[i] >= g->w )
     
    146148        if( wall[i] > wall[i+1] )
    147149        {
    148             c = wall[i] > wall[i-1] ? '>' : '/';
     150            str = wall[i] > wall[i-1] ? ">##>" : "/##/";
    149151        }
    150152        else
    151153        {
    152             c = wall[i] > wall[i-1] ? '\\' : '<';
     154            str = wall[i] > wall[i-1] ? "\\##\\" : "<##<";
    153155        }
    154156
    155         GFX_COLOR( RED );
    156157        if( wall[i] == wall[i+1] + 2 )
    157158        {
    158             GFX_GOTO( wall[i] - 1, i );
    159             GFX_WRITE( '_' );
     159            gfx_goto( wall[i] - 1, i );
     160            gfx_putchar( '_' );
    160161        }
    161         else
    162         {
    163             GFX_GOTO( wall[i], i );
    164         }
    165         GFX_WRITE( c );
    166         GFX_WRITE( '#' );
    167         GFX_WRITE( c );
    168         if( wall[i] == wall[i+1] - 2 ) GFX_WRITE( '_' );
     162
     163        gfx_goto( wall[i], i );
     164        gfx_putstr( str );
     165        if( wall[i] == wall[i+1] - 2 ) gfx_putchar( '_' );
    169166    }
    170167}
Note: See TracChangeset for help on using the changeset viewer.