Ignore:
Timestamp:
Sep 28, 2006, 10:29:45 AM (15 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Scoring and levels implementation (following standard Tetris(c)(tm) rules)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cacatris/trunk/src/cacatris.h

    r1118 r1125  
    2929#define FIELD_CANVAS_WIDTH 20
    3030#define FIELD_CANVAS_HEIGHT 20
     31
     32#define LEVEL_COUNT 11
     33
     34unsigned int points[LEVEL_COUNT*4] = {
     35        40,     80,     120,    160,    200,    240,    280,    320,    360,    400,    440,
     36        100,    200,    300,    400,    500,    600,    700,    800,    900,    1000,   1100,
     37        300,    600,    900,    1200,   1500,   1800,   2100,   2400,   2700,   3000,   3300,
     38        1200,   2400,   3600,   4800,   6000,   7200,   8400,   9600,   10800,  12000,  13200
     39};
     40
    3141
    3242unsigned char playfield[FIELD_WIDTH*FIELD_HEIGHT];
     
    5060
    5161
    52 void infos_populate(cucul_canvas_t *, unsigned int score);
     62void infos_populate(cucul_canvas_t *, unsigned int score, unsigned char level);
    5363void playfield_draw(cucul_canvas_t *);
    5464void put_piece(unsigned int, unsigned int, unsigned int, unsigned int);
Note: See TracChangeset for help on using the changeset viewer.