diff options
| author | J08nY | 2017-04-22 20:46:58 +0200 |
|---|---|---|
| committer | J08nY | 2017-04-22 20:46:58 +0200 |
| commit | dd857ee3bb9fb07c260f51ab4669944d48324eea (patch) | |
| tree | 153f567aae08bdee00ff5e09ec429412b47aa7df /scripts/incubator.gd | |
| parent | 3ed5257c222f34b591b744ef6418b5c1165be25f (diff) | |
| download | ld38-dd857ee3bb9fb07c260f51ab4669944d48324eea.tar.gz ld38-dd857ee3bb9fb07c260f51ab4669944d48324eea.tar.zst ld38-dd857ee3bb9fb07c260f51ab4669944d48324eea.zip | |
Diffstat (limited to 'scripts/incubator.gd')
| -rw-r--r-- | scripts/incubator.gd | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/incubator.gd b/scripts/incubator.gd index 11f8d5b..993f76a 100644 --- a/scripts/incubator.gd +++ b/scripts/incubator.gd @@ -15,12 +15,9 @@ func set_world(x, y, world): world.set_translation(pos.global_transform.origin) func push_world(world): - print("pushing") for x in range(4): for y in range(2): - print("h") if self.worlds[x][y] == null: - print("set") set_world(x, y, world) return @@ -31,8 +28,10 @@ func _on_body_input_event( camera, event, click_pos, click_normal, shape_idx ): if event.type == InputEvent.MOUSE_BUTTON and event.button_index == BUTTON_LEFT: print("body") var cam = get_tree().get_root().get_camera() - cam.select(self) + cam.select(self, get_node("point")) func _on_panel_input_event( camera, event, click_pos, click_normal, shape_idx ): if event.type == InputEvent.MOUSE_BUTTON and event.button_index == BUTTON_LEFT: print("panel") + var cam = get_tree().get_root().get_camera() + cam.select(self, get_node("point")) |
