-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEnemy1.tscn
105 lines (83 loc) · 2.58 KB
/
Enemy1.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
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
[gd_scene load_steps=14 format=2]
[ext_resource path="res://Enemy1.gd" type="Script" id=1]
[ext_resource path="res://KinematicEnemy1.gd" type="Script" id=2]
[ext_resource path="res://enemy/amg1_bk1.png" type="Texture" id=3]
[ext_resource path="res://enemy/amg1_bk2.png" type="Texture" id=4]
[ext_resource path="res://enemy/amg1_lf1.png" type="Texture" id=5]
[ext_resource path="res://enemy/amg1_lf2.png" type="Texture" id=6]
[ext_resource path="res://enemy/amg1_fr1.png" type="Texture" id=7]
[ext_resource path="res://enemy/amg1_fr2.png" type="Texture" id=8]
[ext_resource path="res://enemy/amg1_rt1.png" type="Texture" id=9]
[ext_resource path="res://enemy/amg1_rt2.png" type="Texture" id=10]
[sub_resource type="CapsuleShape2D" id=1]
custom_solver_bias = 0.0
radius = 15.6866
height = 13.8927
[sub_resource type="SpriteFrames" id=2]
animations = [ {
"frames": [ ExtResource( 3 ), ExtResource( 4 ) ],
"loop": true,
"name": "UP",
"speed": 5.0
}, {
"frames": [ ExtResource( 5 ), ExtResource( 6 ) ],
"loop": true,
"name": "LEFT",
"speed": 5.0
}, {
"frames": [ ExtResource( 7 ), ExtResource( 8 ) ],
"loop": true,
"name": "DOWN",
"speed": 5.0
}, {
"frames": [ ExtResource( 9 ), ExtResource( 10 ) ],
"loop": true,
"name": "RIGHT",
"speed": 5.0
} ]
[sub_resource type="CircleShape2D" id=3]
custom_solver_bias = 0.0
radius = 246.873
[node name="Enemy1" type="Node2D"]
[node name="Enemy1" type="RigidBody2D" parent="." index="0"]
input_pickable = false
collision_layer = 1
collision_mask = 1
mode = 2
mass = 1.0
friction = 1.0
bounce = 0.0
gravity_scale = 0.0
custom_integrator = false
continuous_cd = 0
contacts_reported = 0
contact_monitor = false
sleeping = false
can_sleep = true
linear_velocity = Vector2( 0, 0 )
linear_damp = -1.0
angular_velocity = 0.0
angular_damp = -1.0
script = ExtResource( 1 )
[node name="KinematicEnemy1" type="KinematicBody2D" parent="." index="1"]
input_pickable = false
collision_layer = 1
collision_mask = 1
collision/safe_margin = 0.08
script = ExtResource( 2 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="KinematicEnemy1" index="0"]
shape = SubResource( 1 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="KinematicEnemy1" index="1"]
frames = SubResource( 2 )
animation = "RIGHT"
[node name="Body" type="Area2D" parent="KinematicEnemy1" 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="CollisionShape2D2" type="CollisionShape2D" parent="KinematicEnemy1/Body" index="0"]
position = Vector2( -0.71698, 0 )
shape = SubResource( 3 )