|
|
@@ -199,7 +199,7 @@ void infos_populate(cucul_canvas_t *inf, unsigned int score, |
|
|
|
sprintf(levelline, " Level : %02d ", level); |
|
|
|
sprintf(totalline, " Lines : %02d ", total); |
|
|
|
|
|
|
|
cucul_set_color(inf, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLUE); |
|
|
|
cucul_set_color_ansi(inf, CUCUL_WHITE, CUCUL_BLUE); |
|
|
|
cucul_putstr(inf, 0, 0, " =Cacatris= "); |
|
|
|
cucul_putstr(inf, 0, 1, " Arrows : move "); |
|
|
|
cucul_putstr(inf, 0, 2, " Space : pouf "); |
|
|
@@ -231,14 +231,9 @@ void playfield_draw(cucul_canvas_t *canvas) |
|
|
|
unsigned int oxi = (unsigned int) ox; |
|
|
|
unsigned int oyi = (unsigned int) oy; |
|
|
|
unsigned int c = playfield[oxi+oyi*FIELD_WIDTH]; |
|
|
|
if(c) { |
|
|
|
cucul_set_color(canvas, CUCUL_COLOR_BLACK, blocks_palette[c-1]); |
|
|
|
cucul_putchar(canvas, x, y, ' '); |
|
|
|
} else { |
|
|
|
cucul_set_color(canvas, CUCUL_COLOR_BLACK, CUCUL_COLOR_DARKGRAY); |
|
|
|
cucul_putchar(canvas, x, y, ' '); |
|
|
|
|
|
|
|
} |
|
|
|
cucul_set_color_ansi(canvas, CUCUL_BLACK, |
|
|
|
c ? blocks_palette[c-1] : CUCUL_DARKGRAY); |
|
|
|
cucul_putchar(canvas, x, y, ' '); |
|
|
|
ox+=incx; |
|
|
|
} |
|
|
|
ox = 0; |
|
|
|