Changeset 19 for libcaca/trunk/src/player.c
- Timestamp:
- Dec 15, 2002, 4:41:32 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/src/player.c
r17 r19 10 10 11 11 p->x = g->w / 2; 12 p->y = g->h - 3;12 p->y = g->h - 2; 13 13 p->dir = 0; 14 14 p->weapon = 0; … … 25 25 void draw_player( game *g, player *p ) 26 26 { 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" ); 46 39 } 47 40
Note: See TracChangeset
for help on using the changeset viewer.