Cannon shot for Godot 4

Drop this folder into your project and instance cannonball.tscn (an AnimatedSprite2D):

  var fx = preload("res://<folder>/cannonball/cannonball.tscn").instantiate()
  add_child(fx); fx.global_position = hit_point; fx.facing = -1  # mirror
  fx.beat.connect(func(i): apply_damage())  # impact frames: none

The node position is the effect's pivot (48, 102 in the 208x116 frame). It plays once and frees itself; loops keep playing.
