From 2cf04fdf20b7bd33823d8159f54f72442e79bedd Mon Sep 17 00:00:00 2001 From: Torsten Date: Thu, 7 Mar 2024 17:47:56 +0100 Subject: [PATCH] Godot 2D Tutorial update --- ...turning image towards direction (setting rotation).md | 0 .../02. Player Input.md | 0 .../03. Increasing speed.md | 0 .../04. Steering vector.md | 0 .../01. Self delete on collision (Area2D node).md | 9 +++++++++ 5 files changed, 9 insertions(+) rename MyObsidianVault/Godot_Training/2D/{Tutorial Game - to space and beyond => Tutorial Game 1 - to space and beyond}/01. turning image towards direction (setting rotation).md (100%) rename MyObsidianVault/Godot_Training/2D/{Tutorial Game - to space and beyond => Tutorial Game 1 - to space and beyond}/02. Player Input.md (100%) rename MyObsidianVault/Godot_Training/2D/{Tutorial Game - to space and beyond => Tutorial Game 1 - to space and beyond}/03. Increasing speed.md (100%) rename MyObsidianVault/Godot_Training/2D/{Tutorial Game - to space and beyond => Tutorial Game 1 - to space and beyond}/04. Steering vector.md (100%) create mode 100644 MyObsidianVault/Godot_Training/2D/Tutorial Game 2 - Loot it all/01. Self delete on collision (Area2D node).md diff --git a/MyObsidianVault/Godot_Training/2D/Tutorial Game - to space and beyond/01. turning image towards direction (setting rotation).md b/MyObsidianVault/Godot_Training/2D/Tutorial Game 1 - to space and beyond/01. turning image towards direction (setting rotation).md similarity index 100% rename from MyObsidianVault/Godot_Training/2D/Tutorial Game - to space and beyond/01. turning image towards direction (setting rotation).md rename to MyObsidianVault/Godot_Training/2D/Tutorial Game 1 - to space and beyond/01. turning image towards direction (setting rotation).md diff --git a/MyObsidianVault/Godot_Training/2D/Tutorial Game - to space and beyond/02. Player Input.md b/MyObsidianVault/Godot_Training/2D/Tutorial Game 1 - to space and beyond/02. Player Input.md similarity index 100% rename from MyObsidianVault/Godot_Training/2D/Tutorial Game - to space and beyond/02. Player Input.md rename to MyObsidianVault/Godot_Training/2D/Tutorial Game 1 - to space and beyond/02. Player Input.md diff --git a/MyObsidianVault/Godot_Training/2D/Tutorial Game - to space and beyond/03. Increasing speed.md b/MyObsidianVault/Godot_Training/2D/Tutorial Game 1 - to space and beyond/03. Increasing speed.md similarity index 100% rename from MyObsidianVault/Godot_Training/2D/Tutorial Game - to space and beyond/03. Increasing speed.md rename to MyObsidianVault/Godot_Training/2D/Tutorial Game 1 - to space and beyond/03. Increasing speed.md diff --git a/MyObsidianVault/Godot_Training/2D/Tutorial Game - to space and beyond/04. Steering vector.md b/MyObsidianVault/Godot_Training/2D/Tutorial Game 1 - to space and beyond/04. Steering vector.md similarity index 100% rename from MyObsidianVault/Godot_Training/2D/Tutorial Game - to space and beyond/04. Steering vector.md rename to MyObsidianVault/Godot_Training/2D/Tutorial Game 1 - to space and beyond/04. Steering vector.md diff --git a/MyObsidianVault/Godot_Training/2D/Tutorial Game 2 - Loot it all/01. Self delete on collision (Area2D node).md b/MyObsidianVault/Godot_Training/2D/Tutorial Game 2 - Loot it all/01. Self delete on collision (Area2D node).md new file mode 100644 index 0000000..e9af9f4 --- /dev/null +++ b/MyObsidianVault/Godot_Training/2D/Tutorial Game 2 - Loot it all/01. Self delete on collision (Area2D node).md @@ -0,0 +1,9 @@ +```python +extends Area2D + +func _ready() -> void: + area_entered.connect(_on_area_entered) + +func _on_area_entered(area_that_entred: Area2D) -> void: + queue_free() +```