Gamepad support
This commit is contained in:
parent
87f841e8e1
commit
ed369cf718
24 changed files with 240 additions and 78 deletions
|
|
@ -856,7 +856,7 @@ metadata/_edit_lock_ = true
|
|||
[node name="LeftUpperLeg" type="Bone2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt"]
|
||||
use_parent_material = true
|
||||
position = Vector2(6, 4)
|
||||
scale = Vector2(0.999835, 0.999835)
|
||||
scale = Vector2(0.999836, 0.999836)
|
||||
rest = Transform2D(1, 0, 0, 1, 6, 4)
|
||||
editor_settings/show_bone_gizmo = false
|
||||
|
||||
|
|
@ -896,7 +896,7 @@ metadata/_edit_lock_ = true
|
|||
[node name="Body" type="Bone2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt"]
|
||||
use_parent_material = true
|
||||
position = Vector2(1, -2)
|
||||
scale = Vector2(0.999829, 0.999829)
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
rest = Transform2D(1, 0, 0, 1, 1, -2)
|
||||
editor_settings/show_bone_gizmo = false
|
||||
|
||||
|
|
@ -904,7 +904,7 @@ editor_settings/show_bone_gizmo = false
|
|||
z_index = -1
|
||||
use_parent_material = true
|
||||
position = Vector2(-14, -23)
|
||||
scale = Vector2(0.999827, 0.999827)
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
rest = Transform2D(1, 0, 0, 1, -14, -23)
|
||||
editor_settings/show_bone_gizmo = false
|
||||
|
||||
|
|
@ -916,7 +916,7 @@ metadata/_edit_lock_ = true
|
|||
|
||||
[node name="RightLowerArm" type="Bone2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/RightUpperArm"]
|
||||
position = Vector2(-2, 15)
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
scale = Vector2(0.999829, 0.999829)
|
||||
rest = Transform2D(1, 0, 0, 1, -2, 15)
|
||||
editor_settings/show_bone_gizmo = false
|
||||
|
||||
|
|
@ -950,8 +950,8 @@ metadata/_edit_lock_ = true
|
|||
|
||||
[node name="Tie" type="Bone2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body"]
|
||||
position = Vector2(-9, -21)
|
||||
rotation = -0.151557
|
||||
skew = -0.000476003
|
||||
rotation = 0.0871529
|
||||
skew = -0.000476122
|
||||
rest = Transform2D(1, 0, 0, 1, -9, -21)
|
||||
auto_calculate_length_and_angle = false
|
||||
length = 24.0
|
||||
|
|
@ -989,6 +989,7 @@ metadata/_edit_lock_ = true
|
|||
|
||||
[node name="Right_Eye" type="Sprite2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head"]
|
||||
position = Vector2(-16, -8)
|
||||
scale = Vector2(1, 1)
|
||||
texture = SubResource("AtlasTexture_vcc72")
|
||||
centered = false
|
||||
offset = Vector2(-2, -2)
|
||||
|
|
@ -996,15 +997,16 @@ metadata/_edit_lock_ = true
|
|||
|
||||
[node name="Left_Eye" type="Sprite2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head"]
|
||||
position = Vector2(-4, -9)
|
||||
scale = Vector2(1, 1)
|
||||
texture = SubResource("AtlasTexture_kto0i")
|
||||
centered = false
|
||||
offset = Vector2(-2, -2)
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="Jaw" type="Sprite2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head"]
|
||||
position = Vector2(-2.81092, 2.54366)
|
||||
rotation = -0.107471
|
||||
scale = Vector2(0.99983, 0.99983)
|
||||
position = Vector2(-3.00107, 2.99818)
|
||||
rotation = 0.00845789
|
||||
scale = Vector2(0.999829, 0.999829)
|
||||
texture = SubResource("AtlasTexture_x5uj2")
|
||||
centered = false
|
||||
offset = Vector2(-12, -2)
|
||||
|
|
@ -1077,7 +1079,7 @@ minTorque = -45.0
|
|||
maxTorque = 45.0
|
||||
|
||||
[node name="Left_Lower_Arm" type="Sprite2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm/HandProjectile"]
|
||||
rotation = -0.160747
|
||||
rotation = 0.0819429
|
||||
scale = Vector2(0.999998, 0.999998)
|
||||
texture = SubResource("AtlasTexture_auqeq")
|
||||
centered = false
|
||||
|
|
@ -1086,8 +1088,8 @@ metadata/_edit_lock_ = true
|
|||
|
||||
[node name="Left_Hand" type="Sprite2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm/HandProjectile/Left_Lower_Arm"]
|
||||
show_behind_parent = true
|
||||
position = Vector2(-0.999828, 12.9978)
|
||||
rotation = -0.133017
|
||||
position = Vector2(-0.99983, 12.9978)
|
||||
rotation = -0.0361645
|
||||
scale = Vector2(0.999656, 0.999656)
|
||||
texture = SubResource("AtlasTexture_vlvtp")
|
||||
centered = false
|
||||
|
|
@ -1165,7 +1167,7 @@ entity = NodePath("..")
|
|||
[node name="Mover" type="Node" parent="."]
|
||||
script = ExtResource("4_u5syx")
|
||||
_speed = SubResource("Resource_ckb7n")
|
||||
_speedControlMult = 1.02866
|
||||
_speedControlMult = 0.271112
|
||||
|
||||
[node name="HitPlayer" type="Node" parent="."]
|
||||
script = ExtResource("12_he8da")
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ atlas = ExtResource("3_ktw4a")
|
|||
region = Rect2(525, 241, 79, 72)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ktw4a"]
|
||||
size = Vector2(37, 66)
|
||||
size = Vector2(39.5, 66)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_3hyni"]
|
||||
atlas = ExtResource("3_ktw4a")
|
||||
|
|
@ -40,7 +40,7 @@ position = Vector2(8, -16)
|
|||
texture = SubResource("AtlasTexture_f4wwx")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox" index="0"]
|
||||
position = Vector2(-2, -13)
|
||||
position = Vector2(-0.75, -13)
|
||||
shape = SubResource("RectangleShape2D_ktw4a")
|
||||
|
||||
[node name="DragAction" type="Node" parent="Hitbox" index="1"]
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@ material = SubResource("ShaderMaterial_yfuxj")
|
|||
texture = ExtResource("2_ffrjr")
|
||||
hframes = 10
|
||||
vframes = 2
|
||||
frame = 6
|
||||
|
||||
[node name="AnimationPlayer" parent="." index="1"]
|
||||
libraries = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue