smaller map, eating apples, death

This commit is contained in:
Tabby 2025-08-15 13:33:08 +10:00
parent 8c0860a840
commit 2c512d5764
12 changed files with 152 additions and 13 deletions

View file

@ -61,3 +61,13 @@ func become_fake():
#modulate = Color.DIM_GRAY
#collision_layer = 2
pass
func _on_eat_die_box_area_entered(area: Area2D) -> void:
if(area.is_in_group("apple")):
area.queue_free()
print("mmm tasty apple")
if(area.is_in_group("wall")):
print("i die")
get_tree().get_root().process_mode = Node.PROCESS_MODE_DISABLED