Changeset 1312
- Timestamp:
- Nov 9, 2006, 11:54:49 AM (16 years ago)
- Location:
- ttyvaders/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ttyvaders/trunk/TODO
r194 r1312 1 1 $Id$ 2 2 3 o Let the ship pick up bonuses3 - Add ground and air vehicles, make it moon-buggy on steroids! 4 4 5 o Alien swarms, programmed behaviour5 - Provide several sets of sprites (monochrome, ANSI, UTF-8). 6 6 7 o Spiral weapon (vertical sine)7 - Let the ship pick up bonuses 8 8 9 o Stick aliens to tunnel9 - Alien swarms, programmed behaviour 10 10 11 o Change tunnel colour11 - Spiral weapon (vertical sine) 12 12 13 o Draw bosses13 - Stick aliens to tunnel 14 14 15 o Promote precision for all coordinates except screen15 - Change tunnel colour 16 16 17 o Animate the ship17 - Draw bosses 18 18 19 o The nuke should break the tunnel 20 Or at least a bit 19 - Promote precision for all coordinates except screen 21 20 22 o The laser stays alive when the ship explodes21 - Animate the ship 23 22 24 o DONE 12 Nov 2003: Write a generic drawing library with automatic clipping 25 o DONE 23 Dec 2002: Handle life 26 o DONE 23 Dec 2002: Mega ball 27 o DONE 23 Dec 2002: Fragmentation bomb (merge with mega-ball?) 28 o DONE 23 Dec 2002: Fill holes in the tunnel when |step| > 2 29 o DONE 19 Dec 2002: Tunnel sometimes doesn't get drawn on the left 30 o DONE 18 Dec 2002: Draw a 3rd alien type 23 - The nuke should break the tunnel (or at least a bit) 31 24 25 - The laser stays alive when the ship explodes 26 27 - DONE 12 Nov 2003: Write a generic drawing library with automatic clipping 28 - DONE 23 Dec 2002: Handle life 29 - DONE 23 Dec 2002: Mega ball 30 - DONE 23 Dec 2002: Fragmentation bomb (merge with mega-ball?) 31 - DONE 23 Dec 2002: Fill holes in the tunnel when |step| > 2 32 - DONE 19 Dec 2002: Tunnel sometimes doesn't get drawn on the left 33 - DONE 18 Dec 2002: Draw a 3rd alien type 34 -
ttyvaders/trunk/configure.ac
r1081 r1312 27 27 28 28 CACA="no" 29 PKG_CHECK_MODULES(caca, caca ,29 PKG_CHECK_MODULES(caca, caca >= 0.99.beta9, 30 30 [CACA="yes"], 31 31 [AC_MSG_RESULT(no) 32 AC_MSG_ERROR([you need libcaca version 0.99 or later])])32 AC_MSG_ERROR([you need libcaca version 0.99.beta9 or later])]) 33 33 34 34 # Optimizations -
ttyvaders/trunk/src/ttyvaders.c
r1057 r1312 110 110 { 111 111 /* Draw the sky */ 112 cucul_set_color (cv, CUCUL_COLOR_LIGHTBLUE, CUCUL_COLOR_LIGHTCYAN);112 cucul_set_color_ansi(cv, CUCUL_LIGHTBLUE, CUCUL_LIGHTCYAN); 113 113 for(j = h - 24; j < h - 18 + ((40 - i) * (40 - i) / (40 * 40 / 10)) + (i & 1); j++) 114 114 cucul_putchar(cv, i, j, ' '); … … 122 122 cucul_putchar(cv, i, j++, 0x2593); 123 123 cucul_putchar(cv, i, j++, 0x2593); 124 cucul_set_color (cv, CUCUL_COLOR_LIGHTBLUE, CUCUL_COLOR_LIGHTBLUE);124 cucul_set_color_ansi(cv, CUCUL_LIGHTBLUE, CUCUL_LIGHTBLUE); 125 125 for( ; j < h; j++) 126 126 cucul_putchar(cv, i, j, ' '); … … 130 130 /* Draw the ground */ 131 131 j = h - ground[i]; 132 cucul_set_color (cv, CUCUL_COLOR_BLACK, CUCUL_COLOR_LIGHTBLUE);132 cucul_set_color_ansi(cv, CUCUL_BLACK, CUCUL_LIGHTBLUE); 133 133 if(i >= 4 && ground[i] == ground[i - 6] 134 134 && ground[i] != ground[i - 7]) … … 137 137 cucul_putstr(cv, i - 6, j - 1, "(/)-(/)"); 138 138 } 139 cucul_set_color (cv, CUCUL_COLOR_RED, CUCUL_COLOR_GREEN);139 cucul_set_color_ansi(cv, CUCUL_RED, CUCUL_GREEN); 140 140 if(ground[i + 1] > ground[i]) 141 141 cucul_putchar(cv, i, j++, 0x2588); // UTF-8: 0x259f … … 147 147 else 148 148 cucul_putchar(cv, i, j++, 0x2584); 149 cucul_set_color (cv, CUCUL_COLOR_RED, CUCUL_COLOR_BROWN);149 cucul_set_color_ansi(cv, CUCUL_RED, CUCUL_BROWN); 150 150 cucul_putchar(cv, i, j++, 0x2593); 151 151 cucul_putchar(cv, i, j++, 0x2592); … … 161 161 cucul_blit(cv, 68, h - 22, alien, NULL); 162 162 cucul_blit(cv, 52, h - 16, alien, NULL); 163 cucul_set_color (cv, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLUE);163 cucul_set_color_ansi(cv, CUCUL_WHITE, CUCUL_BLUE); 164 164 cucul_printf(cv, 2, h - 2, " %i fps ", 1000000 / (1 + caca_get_display_time(dp))); 165 165 }
Note: See TracChangeset
for help on using the changeset viewer.