28 lines
973 B
Text
28 lines
973 B
Text
[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"]
|
|
|
|
[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")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
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"]
|