updates to week 1 for v4_6_1
This commit is contained in:
1 parent
906df5ad63
commit
59bfb4ae7c
2 files changed
+6
-2
No files matched your search
@@ -28,7 +28,7 @@ func _on_area_2d_areatrigger(effect, body):
|
||||
# handle effects
|
||||
match effect:
|
||||
"destroy":
|
||||
cratesDestroyed +=1
|
||||
cratesDestroyed +=1
|
||||
body.queue_free() # destroy the crate - again will move to SceneManager
|
||||
if cratesDestroyed>=totalCrates:
|
||||
print("You win baby!")
|
||||
|
||||
Reference in new issue
Block a user