finishe pressurePlate
This commit is contained in:
parent
9432084b53
commit
6913816861
6 changed files with 52 additions and 43 deletions
|
@ -13,7 +13,7 @@ region = Rect2(128.019, 31.9952, 31.9608, 31.9949)
|
|||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jee2l"]
|
||||
size = Vector2(6, 28.5)
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D"]
|
||||
[node name="Laser" type="StaticBody2D"]
|
||||
collision_mask = 5
|
||||
|
||||
[node name="Sprite2D2" type="Sprite2D" parent="."]
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
[ext_resource type="Texture2D" uid="uid://cwf57p0osmc0w" path="res://textures/PressurePlate.png" id="1_st48m"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_c6ukx"]
|
||||
size = Vector2(24, 5)
|
||||
size = Vector2(24, 2)
|
||||
|
||||
[sub_resource type="Animation" id="Animation_fulu2"]
|
||||
resource_name = "Disable"
|
||||
|
@ -21,21 +21,6 @@ tracks/0/keys = {
|
|||
"values": [1]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_7ggr5"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Sprite2D:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [1]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_xxdm0"]
|
||||
resource_name = "Enable"
|
||||
tracks/0/type = "value"
|
||||
|
@ -51,6 +36,21 @@ tracks/0/keys = {
|
|||
"values": [0]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_7ggr5"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Sprite2D:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [1]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_usrhb"]
|
||||
_data = {
|
||||
"Disable": SubResource("Animation_fulu2"),
|
||||
|
@ -59,13 +59,16 @@ _data = {
|
|||
}
|
||||
|
||||
[node name="PressurePlate" type="StaticBody2D"]
|
||||
collision_mask = 5
|
||||
collision_layer = 32
|
||||
collision_mask = 37
|
||||
script = ExtResource("1_7ar3x")
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
collision_layer = 32
|
||||
collision_mask = 5
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||
position = Vector2(0, 9.5)
|
||||
position = Vector2(0, 11)
|
||||
shape = SubResource("RectangleShape2D_c6ukx")
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
|
||||
|
|
|
@ -1,17 +1,21 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://br6fngf5208j0"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://d0q0sfati8wk0"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/resizable_block.gd" id="1_j40bu"]
|
||||
[ext_resource type="Texture2D" uid="uid://bb8vdlgwpj8oc" path="res://textures/antivirus-block-big.png" id="3_lb374"]
|
||||
[ext_resource type="Script" path="res://scripts/resizable_block.gd" id="1_ckiwc"]
|
||||
[ext_resource type="Texture2D" uid="uid://bb8vdlgwpj8oc" path="res://textures/antivirus-block-big.png" id="2_i68dl"]
|
||||
|
||||
[node name="Block" type="StaticBody2D"]
|
||||
collision_mask = 22
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_6cdyn"]
|
||||
size = Vector2(64, 61)
|
||||
|
||||
[node name="AnimatableBody2D" type="AnimatableBody2D"]
|
||||
collision_mask = 54
|
||||
input_pickable = true
|
||||
script = ExtResource("1_j40bu")
|
||||
script = ExtResource("1_ckiwc")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("3_lb374")
|
||||
texture = ExtResource("2_i68dl")
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
|
||||
polygon = PackedVector2Array(-32, -20, -28, -20, -28, -24, -24, -24, -24, -28, -20, -28, -20, -32, 20, -32, 20, -28, 24, -28, 24, -24, 28, -24, 28, -20, 32, -20, 32, 20, 28, 20, 28, 24, 24, 24, 24, 28, 20, 28, 20, 32, -20, 32, -20, 28, -24, 28, -24, 24, -28, 24, -28, 20, -32, 20)
|
||||
|
||||
[connection signal="input_event" from="." to="." method="_on_input_event"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_6cdyn")
|
Loading…
Add table
Add a link
Reference in a new issue