diff --git a/week1/GodotSpeedRun/project.godot b/week1/GodotSpeedRun/project.godot index a322ba8..d04bd0d 100644 --- a/week1/GodotSpeedRun/project.godot +++ b/week1/GodotSpeedRun/project.godot @@ -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] diff --git a/week1/GodotSpeedRun/scripts/gamecontroller.gd b/week1/GodotSpeedRun/scripts/gamecontroller.gd index 215ab00..9935205 100644 --- a/week1/GodotSpeedRun/scripts/gamecontroller.gd +++ b/week1/GodotSpeedRun/scripts/gamecontroller.gd @@ -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!")