added the game

This commit is contained in:
JHDev2006
2025-09-13 16:30:32 +01:00
parent 5ef689109b
commit 3773bdaf64
3616 changed files with 263702 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
extends Block
const SPINNING_TURN_BLOCK = preload("uid://b8dalotrk2oci")
func on_block_hit(player: Player) -> void:
if item != null:
if mushroom_if_small:
item = player_mushroom_check(player)
dispense_item()
else:
spin()
func on_shell_block_hit(_shell: Shell) -> void:
if item != null:
dispense_item()
else:
spin()
func spin() -> void:
await get_tree().create_timer(0.15, false).timeout
var spinning = SPINNING_TURN_BLOCK.instantiate()
spinning.position = position
add_sibling(spinning)
queue_free()