-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMob2.tscn
More file actions
80 lines (65 loc) · 2.25 KB
/
Copy pathMob2.tscn
File metadata and controls
80 lines (65 loc) · 2.25 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
[gd_scene load_steps=10 format=2]
[ext_resource path="res://Mob2.gd" type="Script" id=1]
[ext_resource path="res://dodge_assets/art/creeper.png" type="Texture" id=2]
[ext_resource path="res://dodge_assets/art/creeper2.png" type="Texture" id=3]
[ext_resource path="res://dodge_assets/art/water_breathing.png" type="Texture" id=8]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 2 ), ExtResource( 3 ) ],
"loop": true,
"name": "walk",
"speed": 8.0
} ]
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 29.5, 22 )
[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 19.5, 15.5 )
[sub_resource type="RectangleShape2D" id=4]
extents = Vector2( 34.5, 12.5 )
[sub_resource type="ParticlesMaterial" id=5]
lifetime_randomness = 0.5
flag_disable_z = true
gravity = Vector3( -19, -1, 0 )
initial_velocity = 100.0
initial_velocity_random = 1.0
angular_velocity = 20.0
angular_velocity_random = 1.0
orbit_velocity = 0.0
orbit_velocity_random = 0.0
linear_accel = -5.0
linear_accel_random = 1.0
scale = 4.0
[node name="Mob" type="RigidBody2D" groups=["mobs"]]
collision_mask = 0
mass = 65535.0
gravity_scale = 0.0
script = ExtResource( 1 )
__meta__ = {
"_edit_group_": true
}
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
position = Vector2( -9.375, -11.3125 )
scale = Vector2( 2.5, 2.5 )
frames = SubResource( 1 )
animation = "walk"
[node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( -9.5, -40 )
shape = SubResource( 2 )
[node name="CollisionShape2D2" type="CollisionShape2D" parent="."]
position = Vector2( -9.5, -1.5 )
shape = SubResource( 3 )
[node name="CollisionShape2D3" type="CollisionShape2D" parent="."]
position = Vector2( -7.5, 26.5 )
shape = SubResource( 4 )
[node name="Particles2D" type="Particles2D" parent="."]
position = Vector2( 0, -40 )
amount = 5
lifetime = 20.0
speed_scale = 3.0
process_material = SubResource( 5 )
texture = ExtResource( 8 )
[node name="Timer" type="Timer" parent="."]
wait_time = 30.0
[connection signal="screen_exited" from="VisibilityNotifier2D" to="." method="_on_VisibilityNotifier2D_screen_exited"]
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]