refactor to use mediator pattern with EventBus
This commit is contained in:
parent
a4136c937f
commit
0cf64a4bc9
15 changed files with 212 additions and 225 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue