need to sleep
This commit is contained in:
parent
dafae35985
commit
211a5e074b
13 changed files with 381 additions and 15 deletions
|
|
@ -11,7 +11,7 @@ radius = 16.0
|
|||
radius = 7.07107
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_wv6rk"]
|
||||
radius = 32.0
|
||||
radius = 16.0
|
||||
|
||||
[node name="Braincell" type="CharacterBody2D" node_paths=PackedStringArray("doorBox", "hand")]
|
||||
z_index = 15
|
||||
|
|
|
|||
|
|
@ -23,6 +23,9 @@ func _ready() -> void:
|
|||
start_pos = position
|
||||
get_new_target()
|
||||
become_real()
|
||||
if door_disabled:
|
||||
door.process_mode =Node.PROCESS_MODE_DISABLED
|
||||
door.hide()
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
[ext_resource type="Texture2D" uid="uid://cay1k1dp8yf12" path="res://assets/door.png" id="4_34t3n"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_08kyq"]
|
||||
size = Vector2(8, 64)
|
||||
size = Vector2(16, 64)
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_08kyq"]
|
||||
radius = 50.0
|
||||
|
|
@ -38,7 +38,7 @@ position = Vector2(160, 0)
|
|||
position = Vector2(-22, 0)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="DoorArm/Door/DoorIn"]
|
||||
position = Vector2(10, 0)
|
||||
position = Vector2(6, 0)
|
||||
shape = SubResource("RectangleShape2D_08kyq")
|
||||
|
||||
[node name="DoorOut" type="Area2D" parent="DoorArm/Door"]
|
||||
|
|
@ -46,7 +46,7 @@ position = Vector2(22, 0)
|
|||
rotation = 3.14159
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="DoorArm/Door/DoorOut"]
|
||||
position = Vector2(10, 2.53518e-05)
|
||||
position = Vector2(6, 1.52111e-05)
|
||||
shape = SubResource("RectangleShape2D_08kyq")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="DoorArm/Door"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue