npc start
This commit is contained in:
@@ -23,6 +23,7 @@ ref_t testAssetRef;
|
||||
errorret_t sceneOverworldInit(void) {
|
||||
cameraInit(&SCENE_OVERWORLD.camera);
|
||||
glm_vec3_copy((vec3){ 0.0f, 1.0f, 0.0f }, SCENE_OVERWORLD.camera.lookat.up);
|
||||
SCENE_OVERWORLD.camera.perspective.fov = 45;
|
||||
|
||||
scene_t *scene = &SCENE_MANAGER_SCENES[SCENE_TYPE_OVERWORLD];
|
||||
scene->flags |= SCENE_FLAG_ACTIVE | SCENE_FLAG_VISIBLE;
|
||||
@@ -46,9 +47,9 @@ void sceneOverworldRender(void) {
|
||||
(glm_rad(180) - SCENE_OVERWORLD.camera.perspective.fov) / 2.0f
|
||||
) * (fbHeight/ 2.0f);
|
||||
|
||||
glm_vec3_copy((vec3){
|
||||
-100.0f, -100.0f, 0.0f
|
||||
}, SCENE_OVERWORLD.camera.lookat.target);
|
||||
// glm_vec3_copy((vec3){
|
||||
// -100.0f, -100.0f, 0.0f
|
||||
// }, SCENE_OVERWORLD.camera.lookat.target);
|
||||
glm_vec3_copy((vec3){
|
||||
SCENE_OVERWORLD.camera.lookat.target[0],
|
||||
SCENE_OVERWORLD.camera.lookat.target[1] + camOffset,
|
||||
|
Reference in New Issue
Block a user