Ignore:
Timestamp:
Apr 28, 2009, 6:55:01 PM (11 years ago)
Author:
Sam Hocevar
Message:
  • Toying around with the old ttyvaders version.
Location:
ttyvaders/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ttyvaders/trunk

    • Property svn:ignore
      •  

        old new  
        1313*-stamp
        1414INSTALL
         15*.ncb
         16*.suo
         17*.vcproj.*.user
  • ttyvaders/trunk/src/starfield.c

    r2990 r3423  
    3333        s[i].y = caca_rand(0, g->h - 1);
    3434        s[i].z = caca_rand(1, 3);
    35         s[i].c = caca_rand(0, 1) ? CACA_COLOR_LIGHTGRAY : CACA_COLOR_DARKGRAY;
     35        s[i].c = caca_rand(0, 1) ? CACA_LIGHTGRAY : CACA_DARKGRAY;
    3636        s[i].ch = caca_rand(0, 1) ? '.' : '\'';
    3737    }
     
    4848        if(s[i].x >= 0)
    4949        {
    50             caca_set_color(g->cv, s[i].c, CACA_COLOR_BLACK);
    51             caca_putchar(g->cv, s[i].x, s[i].y, s[i].ch);
     50            caca_set_color_ansi(g->cv, s[i].c, CACA_BLACK);
     51            caca_put_char(g->cv, s[i].x, s[i].y, s[i].ch);
    5252        }
    5353    }
     
    6565            s[i].y = 0;
    6666            s[i].z = caca_rand(1, 2);
    67             s[i].c = caca_rand(0, 1) ? CACA_COLOR_LIGHTGRAY : CACA_COLOR_DARKGRAY;
     67            s[i].c = caca_rand(0, 1) ? CACA_LIGHTGRAY : CACA_DARKGRAY;
    6868            s[i].ch = caca_rand(0, 1) ? '.' : '\'';
    6969        }
Note: See TracChangeset for help on using the changeset viewer.