context menu added

player can find food and eat it
This commit is contained in:
Nikolai Fesenko
2025-08-20 16:45:03 +02:00
parent 9bab0ff0f3
commit a0efc6b9b8
11 changed files with 131 additions and 15 deletions

View File

@@ -36,7 +36,7 @@ func _process(delta: float) -> void:
#print(self.position.dot(ownRigidBody.position))
func _input(event: InputEvent) -> void: # zoom control
if(event.is_action("camera_zoom")):
if(event.is_action("camera_zoom") and !Global.is_context_menu_active):
if (event.as_text() == "Mouse Wheel Up"):
#self.position = self.position.lerp(Vector3.ZERO,global_delta * 5.0)
zoom_pos += global_delta * 45.0