-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastroid.tscn
54 lines (38 loc) · 1.17 KB
/
astroid.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[gd_scene load_steps=6 format=2]
[ext_resource path="res://astroid.gd" type="Script" id=1]
[ext_resource path="res://graphics/astroid1.png" type="Texture" id=2]
[ext_resource path="res://graphics/astroid2.png" type="Texture" id=3]
[sub_resource type="CapsuleShape2D" id=1]
custom_solver_bias = 0.0
radius = 9.725
height = 7.65001
[sub_resource type="SpriteFrames" id=2]
animations = [ {
"frames": [ ExtResource( 2 ) ],
"loop": true,
"name": "default",
"speed": 5.0
} ]
[node name="astroid" type="Area2D" index="0" groups=[
"astroid",
]]
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 )
[node name="hit_zone" type="CollisionShape2D" parent="." index="0"]
rotation = 1.5708
shape = SubResource( 1 )
_sections_unfolded = [ "Transform" ]
[node name="sprite1" type="AnimatedSprite" parent="." index="1"]
visible = false
frames = SubResource( 2 )
animation = "default"
[node name="sprite2" type="Sprite" parent="." index="2"]
visible = false
texture = ExtResource( 3 )
[connection signal="area_entered" from="." to="." method="_on_astroid_area_entered"]