Done refactoring
This commit is contained in:
parent
3a136ff215
commit
2176e9d798
88 changed files with 821 additions and 880 deletions
10
scripts/objects/Rocket.gd
Normal file
10
scripts/objects/Rocket.gd
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
extends Projectile
|
||||
|
||||
func areyouready():
|
||||
target = Node2D.new()
|
||||
if len(get_tree().current_scene.can_target) > 0:
|
||||
get_tree().current_scene.can_target[0].add_child(target)
|
||||
else:
|
||||
get_parent().add_child(target)
|
||||
target.global_position = get_global_mouse_position()
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue