WIP duck pushing behaviour
This commit is contained in:
+17
-1
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=18 format=3 uid="uid://muuxxgvx33fp"]
|
||||
[gd_scene load_steps=20 format=3 uid="uid://muuxxgvx33fp"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://hvchk6t0xe7j" path="res://art/animals/Ente.png" id="1_cgxhx"]
|
||||
[ext_resource type="Script" uid="uid://c4qxtuym7syjc" path="res://scripts/CSharp/Common/Animation/Duck.cs" id="2_nm4n7"]
|
||||
@@ -35,11 +35,22 @@ stream_4/stream = ExtResource("12_dx1yn")
|
||||
stream_5/stream = ExtResource("13_yuxo7")
|
||||
stream_6/stream = ExtResource("14_xhefb")
|
||||
|
||||
[sub_resource type="Animation" id="Animation_kjie1"]
|
||||
resource_name = "new_animation"
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_54k4r"]
|
||||
_data = {
|
||||
&"new_animation": SubResource("Animation_kjie1")
|
||||
}
|
||||
|
||||
[node name="Duck" type="Node2D" node_paths=PackedStringArray("_characterBody", "_nakNakAudio", "_wingFlapAudio")]
|
||||
script = ExtResource("2_nm4n7")
|
||||
_characterBody = NodePath("CharacterBody2D")
|
||||
_nakNakAudio = NodePath("Audio/NakNak")
|
||||
_wingFlapAudio = NodePath("Audio/WingFlutter")
|
||||
_runningSpeed = 3000.0
|
||||
_slowSpeed = 500.0
|
||||
_minDistanceToVesna = 1500.0
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
|
||||
collision_mask = 7
|
||||
@@ -200,3 +211,8 @@ script = ExtResource("3_rdn2q")
|
||||
[node name="WingFlutter" type="AudioStreamPlayer2D" parent="Audio"]
|
||||
stream = SubResource("AudioStreamRandomizer_hyel8")
|
||||
script = ExtResource("3_rdn2q")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_54k4r")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user