[gd_scene load_steps=9 format=2] [ext_resource path="res://Mothership.gd" type="Script" id=1] [ext_resource path="res://Laser.tscn" type="PackedScene" id=2] [ext_resource path="res://art/mothership/mothership.png" type="Texture" id=3] [ext_resource path="res://art/mothership/mothership_damage1.png" type="Texture" id=4] [ext_resource path="res://art/mothership/mothership_damage2.png" type="Texture" id=5] [ext_resource path="res://art/mothership/mothership_ruined.png" type="Texture" id=6] [sub_resource type="CapsuleShape2D" id=1] custom_solver_bias = 0.0 radius = 138.39 height = 2377.74 [sub_resource type="SpriteFrames" id=2] animations = [ { "frames": [ ExtResource( 3 ), ExtResource( 4 ), ExtResource( 5 ), ExtResource( 6 ) ], "loop": true, "name": "default", "speed": 5.0 } ] [node name="Mothership" type="Area2D"] position = Vector2( 23.327, 304.835 ) scale = Vector2( 0.3, 0.3 ) input_pickable = true gravity_vec = Vector2( 0, 1 ) gravity = 98.0 linear_damp = 0.1 angular_damp = 1.0 collision_layer = 31 collision_mask = 31 audio_bus_override = false audio_bus_name = "Master" script = ExtResource( 1 ) _sections_unfolded = [ "Collision", "Transform" ] Laser = ExtResource( 2 ) [node name="ShipCollision" type="CollisionShape2D" parent="." index="0"] position = Vector2( -110, 0 ) shape = SubResource( 1 ) [node name="AnimatedSprite" type="AnimatedSprite" parent="." index="1"] frames = SubResource( 2 ) animation = "default" [connection signal="area_shape_entered" from="." to="." method="_on_Mothership_area_shape_entered"] [connection signal="body_entered" from="." to="." method="_on_Mothership_body_entered"]