2024-07-08 00:44:20 +00:00
|
|
|
#ifndef INGAME_H
|
|
|
|
#define INGAME_H
|
|
|
|
|
|
|
|
|
2024-07-29 20:40:15 +00:00
|
|
|
#include "townengine/game_api.h"
|
2024-08-21 13:55:34 +00:00
|
|
|
|
2024-07-08 00:44:20 +00:00
|
|
|
#include "../state.h"
|
|
|
|
#include "scene.h"
|
|
|
|
#include "../player.h"
|
|
|
|
#include "../world.h"
|
|
|
|
|
|
|
|
|
|
|
|
struct scene_ingame {
|
|
|
|
struct scene base;
|
|
|
|
|
|
|
|
struct world *world;
|
|
|
|
struct player *player;
|
2024-07-30 21:05:28 +00:00
|
|
|
|
2024-08-21 13:55:34 +00:00
|
|
|
t_camera cam;
|
|
|
|
|
2024-07-30 21:05:28 +00:00
|
|
|
/* TODO: put this in a better place */
|
|
|
|
float yaw;
|
|
|
|
float pitch;
|
|
|
|
float roll;
|
2024-07-08 00:44:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
struct scene *ingame_scene(struct state *state);
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|