Changeset 1312


Ignore:
Timestamp:
Nov 9, 2006, 11:54:49 AM (16 years ago)
Author:
Sam Hocevar
Message:
  • Update code to make use of libcaca 0.99.beta9.
  • Update TODO.
Location:
ttyvaders/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ttyvaders/trunk/TODO

    r194 r1312  
    11$Id$
    22
    3    o  Let the ship pick up bonuses
     3  - Add ground and air vehicles, make it moon-buggy on steroids!
    44
    5    o  Alien swarms, programmed behaviour
     5  - Provide several sets of sprites (monochrome, ANSI, UTF-8).
    66
    7    o  Spiral weapon (vertical sine)
     7  - Let the ship pick up bonuses
    88
    9    o  Stick aliens to tunnel
     9  - Alien swarms, programmed behaviour
    1010
    11    o  Change tunnel colour
     11  - Spiral weapon (vertical sine)
    1212
    13    o  Draw bosses
     13  - Stick aliens to tunnel
    1414
    15    o  Promote precision for all coordinates except screen
     15  - Change tunnel colour
    1616
    17    o  Animate the ship
     17  - Draw bosses
    1818
    19    o  The nuke should break the tunnel
    20       Or at least a bit
     19  - Promote precision for all coordinates except screen
    2120
    22    o  The laser stays alive when the ship explodes
     21  - Animate the ship
    2322
    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)
    3124
     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  
    2727
    2828CACA="no"
    29 PKG_CHECK_MODULES(caca, caca,
     29PKG_CHECK_MODULES(caca, caca >= 0.99.beta9,
    3030 [CACA="yes"],
    3131 [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])])
    3333
    3434# Optimizations
  • ttyvaders/trunk/src/ttyvaders.c

    r1057 r1312  
    110110    {
    111111        /* Draw the sky */
    112         cucul_set_color(cv, CUCUL_COLOR_LIGHTBLUE, CUCUL_COLOR_LIGHTCYAN);
     112        cucul_set_color_ansi(cv, CUCUL_LIGHTBLUE, CUCUL_LIGHTCYAN);
    113113        for(j = h - 24; j < h - 18 + ((40 - i) * (40 - i) / (40 * 40 / 10)) + (i & 1); j++)
    114114            cucul_putchar(cv, i, j, ' ');
     
    122122        cucul_putchar(cv, i, j++, 0x2593);
    123123        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);
    125125        for( ; j < h; j++)
    126126            cucul_putchar(cv, i, j, ' ');
     
    130130        /* Draw the ground */
    131131        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);
    133133        if(i >= 4 && ground[i] == ground[i - 6]
    134134                  && ground[i] != ground[i - 7])
     
    137137            cucul_putstr(cv, i - 6, j - 1, "(/)-(/)");
    138138        }
    139         cucul_set_color(cv, CUCUL_COLOR_RED, CUCUL_COLOR_GREEN);
     139        cucul_set_color_ansi(cv, CUCUL_RED, CUCUL_GREEN);
    140140        if(ground[i + 1] > ground[i])
    141141            cucul_putchar(cv, i, j++, 0x2588); // UTF-8: 0x259f
     
    147147        else
    148148            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);
    150150        cucul_putchar(cv, i, j++, 0x2593);
    151151        cucul_putchar(cv, i, j++, 0x2592);
     
    161161    cucul_blit(cv, 68, h - 22, alien, NULL);
    162162    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);
    164164    cucul_printf(cv, 2, h - 2, " %i fps ", 1000000 / (1 + caca_get_display_time(dp)));
    165165}
Note: See TracChangeset for help on using the changeset viewer.