4 #include "base_config.h"
6 /*---------------------------------------------------------------------------*/
12 /* (data) means that the file is relative from the data file */
13 char file[MAXSTR]; /* sol main file */
14 char back[MAXSTR]; /* sol background file (data) */
15 char grad[MAXSTR]; /* gradiant backgound image (data) */
16 char shot[MAXSTR]; /* screenshot image (data)*/
17 char song[MAXSTR]; /* song file (data) */
18 int time; /* time limit */
19 int goal; /* coins needed */
22 int level_load(const char *, struct level *);
24 void level_dump_info(const struct level *);
26 /*---------------------------------------------------------------------------*/
28 /* A level for the playing */
32 int mode; /* game mode */
33 int level; /* level id of the set */
35 int goal; /* coins needed */
36 int time; /* time limit */
38 /* MODE_CHALLENGE only */
39 int score; /* coin total */
40 int balls; /* live count */
41 int times; /* time total */
43 /* Once a level is finished */
44 int state; /* state ending */
45 int coins; /* coins collected */
46 int timer; /* time elapsed */
49 /*---------------------------------------------------------------------------*/
51 #define MODE_CHALLENGE 1
53 #define MODE_PRACTICE 3
56 const char *mode_to_str(int);