summaryrefslogtreecommitdiff
path: root/demos/2d/isometric_light/cubio.gd
diff options
context:
space:
mode:
Diffstat (limited to 'demos/2d/isometric_light/cubio.gd')
-rw-r--r--demos/2d/isometric_light/cubio.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/2d/isometric_light/cubio.gd b/demos/2d/isometric_light/cubio.gd
index 508cd3728c..a26d5ae6fb 100644
--- a/demos/2d/isometric_light/cubio.gd
+++ b/demos/2d/isometric_light/cubio.gd
@@ -19,7 +19,7 @@ func _input(event):
if (event.type == InputEvent.MOUSE_BUTTON and event.button_index == 1 and event.pressed and shoot_countdown <= 0):
var pos = get_canvas_transform().affine_inverse()*event.pos
var dir = (pos - get_global_pos()).normalized()
- var bullet = preload("res://shoot.scn").instance()
+ var bullet = preload("res://shoot.tscn").instance()
bullet.advance_dir = dir
bullet.set_pos(get_global_pos() + dir*60)
get_parent().add_child(bullet)