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,14 @@
class_name BetterAnimatedSprite2D
extends AnimatedSprite2D
@export var do_offset := true
func _process(_delta: float) -> void:
if do_offset:
on_frame_changed()
func on_frame_changed() -> void:
if sprite_frames == null: return
var texture = sprite_frames.get_frame_texture(animation, frame)
if texture != null:
position.y = -(texture.get_height() / 2.0)