smaller map, eating apples, death
This commit is contained in:
parent
8c0860a840
commit
2c512d5764
12 changed files with 152 additions and 13 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://bwoeu7ask0fck"]
|
||||
[gd_scene load_steps=8 format=3 uid="uid://bwoeu7ask0fck"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b5cqo12km1nh3" path="res://prefabs/snake_segment.gd" id="1_3ulhv"]
|
||||
[ext_resource type="Texture2D" uid="uid://l8x3dp68yyxr" path="res://assets/segement.png" id="1_6uqch"]
|
||||
|
|
@ -9,6 +9,9 @@
|
|||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_08kyq"]
|
||||
size = Vector2(8, 64)
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_08kyq"]
|
||||
radius = 50.0
|
||||
|
||||
[node name="SnakeSegment" type="AnimatableBody2D" node_paths=PackedStringArray("door")]
|
||||
script = ExtResource("1_3ulhv")
|
||||
door = NodePath("DoorArm")
|
||||
|
|
@ -49,3 +52,10 @@ shape = SubResource("RectangleShape2D_08kyq")
|
|||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="DoorArm/Door"]
|
||||
texture = ExtResource("4_34t3n")
|
||||
|
||||
[node name="EatDieBox" type="Area2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="EatDieBox"]
|
||||
shape = SubResource("CircleShape2D_08kyq")
|
||||
|
||||
[connection signal="area_entered" from="EatDieBox" to="." method="_on_eat_die_box_area_entered"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue