Initial commit
This commit is contained in:
24
src/game/level.h
Normal file
24
src/game/level.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef JNR_LEVEL_H
|
||||
#define JNR_LEVEL_H
|
||||
|
||||
#include "engine/tilemap.h"
|
||||
#include "engine/entity.h"
|
||||
#include "engine/camera.h"
|
||||
#include "engine/audio.h"
|
||||
#include "engine/parallax.h"
|
||||
|
||||
typedef struct Level {
|
||||
Tilemap map;
|
||||
EntityManager entities;
|
||||
Camera camera;
|
||||
Parallax parallax;
|
||||
Music music;
|
||||
bool music_started;
|
||||
} Level;
|
||||
|
||||
bool level_load(Level *level, const char *path);
|
||||
void level_update(Level *level, float dt);
|
||||
void level_render(Level *level, float interpolation);
|
||||
void level_free(Level *level);
|
||||
|
||||
#endif /* JNR_LEVEL_H */
|
||||
Reference in New Issue
Block a user