really finished scoring

This commit is contained in:
ronny abraham 2024-11-24 03:50:55 +02:00
parent 7ad10083dd
commit 596cd6f145

View file

@ -48,7 +48,7 @@ var _score: int
**** in the game scene **** in the game scene
- Scene->Paddle->Node->Signals - Scene->Paddle->Node->Signals
- Area2D -> area_entered - Area2D -> ~area_entered~
- set the register to the Game node - set the register to the Game node
@ -74,3 +74,11 @@ var _score: int
_score +=1 _score +=1
label.text = str(_score) label.text = str(_score)
#+END_SRC #+END_SRC
** remove the gem from the scene if it hits the padde
- the area2D node passed into the receiver method is a reference to the gem node
- so you can use the queue_free method to remove it from the scene queue
#+BEGIN_SRC gdscript
area.queue_free()
#+END_SRC