slowed the snake down, now the doors are much more reliable
This commit is contained in:
parent
5197d10172
commit
7584cf0b19
11 changed files with 71 additions and 10 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://cusdydgg4b1bo"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://cusdydgg4b1bo"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b48mlxrnte625" path="res://braincell.gd" id="1_q1ksn"]
|
||||
[ext_resource type="Texture2D" uid="uid://qyd5e7lb2esx" path="res://assets/braincell.png" id="2_wv6rk"]
|
||||
|
|
@ -6,7 +6,11 @@
|
|||
[sub_resource type="CircleShape2D" id="CircleShape2D_g14j6"]
|
||||
radius = 16.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_q1ksn"]
|
||||
radius = 7.07107
|
||||
|
||||
[node name="Braincell" type="CharacterBody2D"]
|
||||
z_index = 15
|
||||
motion_mode = 1
|
||||
script = ExtResource("1_q1ksn")
|
||||
|
||||
|
|
@ -15,3 +19,10 @@ texture = ExtResource("2_wv6rk")
|
|||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_g14j6")
|
||||
|
||||
[node name="doorBox" type="Area2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="doorBox"]
|
||||
shape = SubResource("CircleShape2D_q1ksn")
|
||||
|
||||
[connection signal="area_entered" from="doorBox" to="." method="_on_door_box_area_entered"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue