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,17 @@
extends Enemy
@export var player_range := 24
func _enter_tree() -> void:
$Animation.play("Hide")
func _ready() -> void:
print(abs(global_rotation_degrees))
if is_equal_approx(abs(global_rotation_degrees), 180) == false:
$Sprite/Hitbox/UpsideDownExtension.queue_free()
$Timer.start()
func on_timeout() -> void:
var player = get_tree().get_first_node_in_group("Players")
if abs(player.global_position.x - global_position.x) >= player_range:
$Animation.play("Rise")