-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMob.tscn
More file actions
66 lines (56 loc) · 2.18 KB
/
Mob.tscn
File metadata and controls
66 lines (56 loc) · 2.18 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
[gd_scene load_steps=14 format=2]
[ext_resource path="res://dodge assets/art/shell-blue-1.png" type="Texture" id=1]
[ext_resource path="res://dodge assets/art/shell-green-1.png" type="Texture" id=2]
[ext_resource path="res://dodge assets/art/shell-red-1.png" type="Texture" id=3]
[ext_resource path="res://dodge assets/art/shell-red-2.png" type="Texture" id=4]
[ext_resource path="res://dodge assets/art/shell-blue-2.png" type="Texture" id=5]
[ext_resource path="res://dodge assets/art/shell-green-2.png" type="Texture" id=6]
[ext_resource path="res://Mob.gd" type="Script" id=7]
[ext_resource path="res://dodge assets/art/shell-green-3.png" type="Texture" id=8]
[ext_resource path="res://dodge assets/art/shell-blue-3.png" type="Texture" id=9]
[ext_resource path="res://dodge assets/art/shell-red-3.png" type="Texture" id=10]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 1 ), ExtResource( 5 ), ExtResource( 9 ) ],
"loop": true,
"name": "blue",
"speed": 15.0
}, {
"frames": [ ExtResource( 2 ), ExtResource( 6 ), ExtResource( 8 ) ],
"loop": true,
"name": "green",
"speed": 5.0
}, {
"frames": [ ExtResource( 3 ), ExtResource( 4 ), ExtResource( 10 ) ],
"loop": true,
"name": "red",
"speed": 10.0
} ]
[sub_resource type="CapsuleShape2D" id=2]
radius = 28.7407
height = 9.45965
[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 113.052, 3.25 )
[node name="Mob" type="RigidBody2D" groups=["mobs"]]
position = Vector2( 0.707092, 0 )
collision_mask = 0
gravity_scale = 0.0
script = ExtResource( 7 )
__meta__ = {
"_edit_group_": true
}
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
scale = Vector2( 0.25, 0.25 )
frames = SubResource( 1 )
animation = "blue"
playing = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 0.363953, 4.65685 )
rotation = 1.5708
shape = SubResource( 2 )
[node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."]
[node name="ShellTopCollision" type="CollisionShape2D" parent="."]
position = Vector2( -1.70709, -27 )
scale = Vector2( 0.25, 1 )
shape = SubResource( 3 )
[connection signal="screen_exited" from="VisibilityNotifier2D" to="." method="_on_VisibilityNotifier2D_screen_exited"]