6 #include "game/camera.h"
7 #include "game/level/platforms.h"
8 #include "game/level/player.h"
9 #include "sound_samples.h"
11 typedef struct Level Level;
12 typedef struct LevelEditor LevelEditor;
14 Level *create_level_from_level_editor(const LevelEditor *level_editor);
15 void destroy_level(Level *level);
17 int level_render(const Level *level, const Camera *camera);
19 int level_sound(Level *level, Sound_samples *sound_samples);
20 int level_update(Level *level, float delta_time);
22 int level_event(Level *level, const SDL_Event *event,
23 Camera *camera, Sound_samples *sound_samples);
24 int level_input(Level *level,
25 const Uint8 *const keyboard_state,
26 SDL_Joystick *the_stick_of_joy);
27 int level_enter_camera_event(Level *level, Camera *camera);
29 void level_disable_pause_mode(Level *level, Camera *camera,
30 Sound_samples *sound_samples);