-
Notifications
You must be signed in to change notification settings - Fork 1
/
Mob.tscn
49 lines (42 loc) · 1.45 KB
/
Mob.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
[gd_scene load_steps=10 format=2]
[ext_resource path="res://dodge_assets/art/enemyWalking_1.png" type="Texture" id=1]
[ext_resource path="res://dodge_assets/art/enemyFlyingAlt_2.png" type="Texture" id=2]
[ext_resource path="res://dodge_assets/art/enemyFlyingAlt_1.png" type="Texture" id=3]
[ext_resource path="res://dodge_assets/art/enemySwimming_1.png" type="Texture" id=4]
[ext_resource path="res://dodge_assets/art/enemySwimming_2.png" type="Texture" id=5]
[ext_resource path="res://dodge_assets/art/enemyWalking_2.png" type="Texture" id=6]
[ext_resource path="res://Mob.gd" type="Script" id=7]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 4 ), ExtResource( 5 ) ],
"loop": true,
"name": "swim",
"speed": 4.0
}, {
"frames": [ ExtResource( 3 ), ExtResource( 2 ) ],
"loop": true,
"name": "fly",
"speed": 3.0
}, {
"frames": [ ExtResource( 1 ), ExtResource( 6 ) ],
"loop": true,
"name": "walk",
"speed": 4.0
} ]
[sub_resource type="CapsuleShape2D" id=2]
radius = 19.5
height = 14.2826
[node name="Mob" type="RigidBody2D"]
collision_mask = 0
gravity_scale = 0.0
script = ExtResource( 7 )
min_speed = 130
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
scale = Vector2( 0.4, 0.4 )
frames = SubResource( 1 )
animation = "walk"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
rotation = 1.5708
shape = SubResource( 2 )
[node name="Visibility" type="VisibilityNotifier2D" parent="."]
position = Vector2( 0, 0.874123 )