1234567891011121314151617181920212223242526272829 |
- [gd_scene load_steps=5 format=2]
- [ext_resource path="res://component/entity/launcher/Launcher.gd" type="Script" id=1]
- [ext_resource path="res://component/entity/launcher/visor.png" type="Texture" id=2]
- [ext_resource path="res://component/entity/launcher/TargetLine.gd" type="Script" id=3]
- [ext_resource path="res://component/entity/launcher/launcher.png" type="Texture" id=4]
- [node name="Launcher" type="Node2D"]
- script = ExtResource( 1 )
- visor_ratio = 1.6
- [node name="TargetLine" type="RayCast2D" parent="."]
- position = Vector2( 200, 400 )
- collision_mask = 6
- script = ExtResource( 3 )
- [node name="TargetVisor" type="Sprite" parent="TargetLine"]
- texture = ExtResource( 2 )
- [node name="Source" type="Sprite" parent="."]
- position = Vector2( 200, 400 )
- texture = ExtResource( 4 )
- [node name="ShootDelay" type="Timer" parent="."]
- wait_time = 0.1
- one_shot = true
- [connection signal="get_firing" from="." to="." method="_on_Launcher_get_firing"]
- [connection signal="move_visor" from="." to="TargetLine" method="_on_Launcher_move_visor"]
- [connection signal="timeout" from="ShootDelay" to="." method="_on_ShootDelay_timeout"]
|