summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authortalha <sarcxd@gmail.com>2024-10-22 00:13:34 +0500
committertalha <sarcxd@gmail.com>2024-10-22 00:13:34 +0500
commit1d51ae47889c1fd46af63a298b7d7ffd1e68ee54 (patch)
treea3a1401b67a05c3798f617d9c1cd58728e2f726b /source
parentc1753b629ba1ff9c79c7c1e6843c4685be006e90 (diff)
Disabled the funky camera movement poc for now
Diffstat (limited to 'source')
-rwxr-xr-xsource/main.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/source/main.cpp b/source/main.cpp
index 16ef163..f692a54 100755
--- a/source/main.cpp
+++ b/source/main.cpp
@@ -552,16 +552,16 @@ Vec2 get_move_dir(Controller c) {
return dir;
}
-void update_camera(GLRenderer *renderer) {
- if (renderer->cam_update == true) {
- renderer->cam_view = camera_create4m(
- renderer->cam_pos,
- add3v(renderer->cam_pos, renderer->cam_look),
- renderer->preset_up_dir
- );
- renderer->cam_update = false;
- }
-}
+//void update_camera(GLRenderer *renderer) {
+// if (renderer->cam_update == true) {
+// renderer->cam_view = camera_create4m(
+// renderer->cam_pos,
+// add3v(renderer->cam_pos, renderer->cam_look),
+// renderer->preset_up_dir
+// );
+// renderer->cam_update = false;
+// }
+//}
int main(int argc, char* argv[])
{
@@ -998,8 +998,8 @@ int main(int argc, char* argv[])
if (!is_collide_x) {
state.player.position.x = next_player_position.x;
- renderer->cam_pos.x += pd_1.x;
- renderer->cam_update = true;
+ //renderer->cam_pos.x += pd_1.x;
+ //renderer->cam_update = true;
}
if (!is_collide_y) {
state.player.position.y = next_player_position.y;
@@ -1009,7 +1009,7 @@ int main(int argc, char* argv[])
collidex = is_collide_x;
collidey = is_collide_y;
- update_camera(renderer);
+ //update_camera(renderer);
// output
glClearColor(0.8f, 0.5f, 0.7f, 1.0f);