Cleaned up the Code; reworked the Block Physics
This commit is contained in:
parent
ed9f671256
commit
9f6750b08a
48 changed files with 1237 additions and 1116 deletions
64
scenes/NewBlocks/block.tscn
Normal file
64
scenes/NewBlocks/block.tscn
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://cbjkurbgojqac"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/NewBlocks/block.gd" id="1_booro"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_1j0va"]
|
||||
resource_name = "Expand"
|
||||
length = 0.5
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:scale")
|
||||
tracks/0/interp = 2
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.5),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector2(1, 1), Vector2(2, 2)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_8wn5l"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:scale")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector2(1, 1)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_u3jpa"]
|
||||
_data = {
|
||||
"Expand": SubResource("Animation_1j0va"),
|
||||
"RESET": SubResource("Animation_8wn5l")
|
||||
}
|
||||
|
||||
[node name="Block" type="CharacterBody2D" groups=["Block"]]
|
||||
collision_layer = 2
|
||||
collision_mask = 3
|
||||
script = ExtResource("1_booro")
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
|
||||
|
||||
[node name="PartPoints" type="Node2D" parent="."]
|
||||
|
||||
[node name="RotationPoint" type="Marker2D" parent="."]
|
||||
|
||||
[node name="PartsContainer" type="Node2D" parent="."]
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_u3jpa")
|
||||
}
|
||||
|
||||
[node name="CoyoteTimer" type="Timer" parent="."]
|
||||
one_shot = true
|
||||
|
||||
[connection signal="animation_finished" from="AnimationPlayer" to="." method="_on_animation_player_animation_finished"]
|
||||
[connection signal="timeout" from="CoyoteTimer" to="." method="_on_coyote_timer_timeout"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue