Godot 4 - import notes (Slime Forge slime pack)
================================================

QUICK START (v1.1, ready-made SpriteFrames - about 1 minute)
------------------------------------------------------------
1. Copy the pack folder ("slime-forge-slime-pack") into your project's
   root and rename it to "slime_forge", so you get res://slime_forge/slimes/,
   res://slime_forge/godot/, etc. (keep the folders inside unchanged).

2. Project > Project Settings > Rendering > Textures >
   Canvas Textures > Default Texture Filter = Nearest (keeps pixels sharp;
   the example scenes already set Texture Filter = Nearest on the node).

3. Drag res://slime_forge/godot/slime.tscn into your scene: a green slime
   (AnimatedSprite2D) plays "idle" on start, with Offset (0, -8) so the node
   position is at its feet.

   Every animation already has the right fps and loop setting (loop ON only
   for idle and hop). Switch animation in code with
   $Slime.play("hop"). Change colour by assigning another
   godot/<colour>_spriteframes.tres to Sprite Frames.

   IMPORTANT - folder name: the .tres files point to
   res://slime_forge/slimes/... If you put the pack anywhere else,
   Godot will report missing dependencies. Either rename/move the folder to
   res://slime_forge/, or fix the paths once in the "Fix Dependencies" dialog.
   Do not rename the colour folders or PNG files.

The files in godot/ are plain text and were generated from the .json
metadata; they target Godot 4.x (format=3). Godot 3 cannot open them.

MANUAL SETUP (build your own SpriteFrames, any folder)
------------------------------------------------------
1. Copy the "slimes" folder into your project (e.g. res://assets/slimes/).

2. Keep pixels sharp:
   Project > Project Settings > Rendering > Textures >
   Canvas Textures > Default Texture Filter = Nearest
   (or set Texture Filter = Nearest on each AnimatedSprite2D / Sprite2D).

3. In the Import dock for each PNG: leave Compress Mode = Lossless,
   Mipmaps off. Click "Reimport" if you changed anything.

4. AnimatedSprite2D + SpriteFrames from a sheet:
   - Add an AnimatedSprite2D node, Sprite Frames > New SpriteFrames, open it.
   - Rename "default" to "idle", click the "Add frames from sprite sheet" icon
     (grid icon), pick green_idle.png.
   - Horizontal = number of frames (idle 4, hop 6, hurt 2, death 5),
     Vertical = 1. Select all frames > Add frames.
   - Set the animation speed (FPS) from the matching .json file:
     idle 6, hop 10, hurt 8, death 10.
     Turn Loop OFF for "hurt" and "death".
   - Repeat for hop, hurt, death.
   Using the combined sheet (<colour>_all.png) instead: Horizontal = 6,
   Vertical = 4, then add only the cells of the row you need
   (row 0 idle: 4 cells, row 1 hop: 6, row 2 hurt: 2, row 3 death: 5).

5. Origin: the slime's feet sit on the bottom row of each 16x16 frame.
   Set AnimatedSprite2D Offset = (0, -8) (or Centered = off and Offset (-8, -16))
   so the node position is at the slime's feet.

6. Signals: connect "animation_finished" to queue_free() after "death".

7. Recolour: every variant uses the same frames, so you can switch colour by
   swapping the SpriteFrames resource, or make your own colours from
   palette.gpl (5 tones per slime: outline, shadow, base, light, highlight).
