updates to week 1 for v4_6_1
This commit is contained in:
parent
906df5ad63
commit
59bfb4ae7c
@ -8,11 +8,15 @@
|
||||
|
||||
config_version=5
|
||||
|
||||
[animation]
|
||||
|
||||
compatibility/default_parent_skeleton_in_mesh_instance_3d=true
|
||||
|
||||
[application]
|
||||
|
||||
config/name="GodotSpeedRun"
|
||||
run/main_scene="res://scenes/game.tscn"
|
||||
config/features=PackedStringArray("4.4", "Forward Plus")
|
||||
config/features=PackedStringArray("4.6", "Forward Plus")
|
||||
config/icon="res://icon.svg"
|
||||
|
||||
[file_customization]
|
||||
|
||||
@ -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!")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user