summaryrefslogtreecommitdiff
path: root/item/shoe.gd
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-12-26 11:29:04 +0100
committerDaniel Weipert <git@mail.dweipert.de>2024-12-26 11:29:04 +0100
commitd572bc0a27b05c6632ba76bd630c7c4fd8f0ae5d (patch)
tree8bffeb9f025dc1c77bc53b65caf10d9b1fab5f2c /item/shoe.gd
initial commit
Diffstat (limited to 'item/shoe.gd')
-rw-r--r--item/shoe.gd7
1 files changed, 7 insertions, 0 deletions
diff --git a/item/shoe.gd b/item/shoe.gd
new file mode 100644
index 0000000..821af95
--- /dev/null
+++ b/item/shoe.gd
@@ -0,0 +1,7 @@
+extends Item
+
+
+func apply(player: Player):
+ SoundManager.get_node("ItemPickUpShoe").play()
+ player.speed_modifier = min(player.speed_modifier + 0.5, 2.0)
+ queue_free()