From d572bc0a27b05c6632ba76bd630c7c4fd8f0ae5d Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Thu, 26 Dec 2024 11:29:04 +0100 Subject: initial commit --- item/shoe.gd | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 item/shoe.gd (limited to 'item/shoe.gd') 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() -- cgit v1.2.3