refactor to use mediator pattern with EventBus

This commit is contained in:
Antti Hakkarainen 2023-02-17 21:07:11 +02:00
parent a4136c937f
commit 0cf64a4bc9
15 changed files with 212 additions and 225 deletions

View file

@ -25,10 +25,10 @@ func _on_camera_zoom_2d_camera_zoom_changed(new_zoom_factor):
# Sets the initial size of the camera box, after game is loaded
func set_camera_marker() -> void:
print("setting marker rdy")
size_multiplier = Globals.map_size / 32
w_s = DisplayServer.window_get_size(0) / size_multiplier
func set_camera_marker_position(pos:Vector2) -> void:
print("marker pos: ", pos)
#print("marker pos: ", pos)
self.position = pos