70 lines
1.6 KiB
Plaintext
70 lines
1.6 KiB
Plaintext
[gd_scene load_steps=7 format=2]
|
|
|
|
[ext_resource path="res://Mothership.gd" type="Script" id=1]
|
|
[ext_resource path="res://Laserr.tscn" type="PackedScene" id=2]
|
|
[ext_resource path="res://art/mothership/mothership.png" type="Texture" id=3]
|
|
|
|
[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 ) ],
|
|
"loop": true,
|
|
"name": "default",
|
|
"speed": 5.0
|
|
} ]
|
|
|
|
[sub_resource type="RectangleShape2D" id=3]
|
|
|
|
custom_solver_bias = 0.0
|
|
extents = Vector2( 135.733, 138.728 )
|
|
|
|
[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
|
|
audio_bus_override = false
|
|
audio_bus_name = "Master"
|
|
script = ExtResource( 1 )
|
|
_sections_unfolded = [ "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"
|
|
|
|
[node name="GunAimNode" type="Area2D" parent="." index="2"]
|
|
|
|
input_pickable = true
|
|
gravity_vec = Vector2( 0, 1 )
|
|
gravity = 98.0
|
|
linear_damp = 0.1
|
|
angular_damp = 1.0
|
|
audio_bus_override = false
|
|
audio_bus_name = "Master"
|
|
|
|
[node name="GunAim" type="CollisionShape2D" parent="GunAimNode" index="0"]
|
|
|
|
position = Vector2( -178.686, -46.8981 )
|
|
shape = SubResource( 3 )
|
|
|
|
[connection signal="area_entered" from="GunAimNode" to="." method="_on_GunAimNode_area_entered"]
|
|
|
|
|