Godot 2D Tutorial update
This commit is contained in:
parent
669aa638be
commit
2cf04fdf20
5 changed files with 9 additions and 0 deletions
|
|
@ -0,0 +1,9 @@
|
||||||
|
```python
|
||||||
|
extends Area2D
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
area_entered.connect(_on_area_entered)
|
||||||
|
|
||||||
|
func _on_area_entered(area_that_entred: Area2D) -> void:
|
||||||
|
queue_free()
|
||||||
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue