2024-07-08 00:44:20 +00:00
|
|
|
#ifndef INGAME_H
|
|
|
|
#define INGAME_H
|
|
|
|
|
2024-09-16 13:17:00 +00:00
|
|
|
#include "twn_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"
|
|
|
|
|
|
|
|
|
2024-09-23 17:43:16 +00:00
|
|
|
typedef struct SceneIngame {
|
|
|
|
Scene base;
|
2024-07-08 00:44:20 +00:00
|
|
|
|
2024-09-23 17:43:16 +00:00
|
|
|
World *world;
|
|
|
|
Player *player;
|
2024-07-30 21:05:28 +00:00
|
|
|
|
2024-09-23 17:43:16 +00:00
|
|
|
Camera cam;
|
2024-08-21 13:55:34 +00:00
|
|
|
|
2024-07-30 21:05:28 +00:00
|
|
|
/* TODO: put this in a better place */
|
|
|
|
float yaw;
|
|
|
|
float pitch;
|
|
|
|
float roll;
|
2024-09-23 17:43:16 +00:00
|
|
|
} SceneIngame;
|
2024-07-08 00:44:20 +00:00
|
|
|
|
|
|
|
|
2024-09-23 17:43:16 +00:00
|
|
|
Scene *ingame_scene(State *state);
|
2024-07-08 00:44:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|