smaller map, eating apples, death
This commit is contained in:
parent
8c0860a840
commit
2c512d5764
12 changed files with 152 additions and 13 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue