really finished scoring
This commit is contained in:
parent
7ad10083dd
commit
596cd6f145
1 changed files with 9 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ var _score: int
|
|||
|
||||
**** in the game scene
|
||||
- Scene->Paddle->Node->Signals
|
||||
- Area2D -> area_entered
|
||||
- Area2D -> ~area_entered~
|
||||
|
||||
- set the register to the Game node
|
||||
|
||||
|
|
@ -74,3 +74,11 @@ var _score: int
|
|||
_score +=1
|
||||
label.text = str(_score)
|
||||
#+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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue