level.h (296B)
1 #pragma once 2 3 #define LEVELS 3 4 5 typedef struct Level level_t; 6 7 typedef enum { 8 LEVEL_NULL, 9 LEVEL_1, 10 LEVEL_2, 11 LEVEL_3, 12 } level_e; 13 14 #include "game.h" 15 16 struct Level { 17 level_e type; 18 int width; 19 int height; 20 }; 21 22 void level_load(game_t *game, level_e type); 23 void level_unload(game_t *game);