KryScene->Scene, KryNode->Node, KryonProperty*->Property*,
KrySignal*->Signal*, KryTransform2D->Transform2D, and the
KRY_NODE_/KRY_SCENE_/KRYON_PROPERTY_/KRY_SIGNAL_ enum and macro
families to NODE_/SCENE_/PROPERTY_/SIGNAL_. Header guards keep their
original names (internal). The lowercase kry_ module namespaces
(kry_json, kry_term, ...) and the raymath-shadowing helpers
(KryVector2*, KryClamp, KryLerp) stay prefixed: their unprefixed names
collide with the raylib API surface kryon tracks.
Runtime:
- include/kry_animation.h + src/scene/kry_animation.c: animation = ordered
tracks of (time,value) keyframes; linear/step interpolation; hold-before/
hold-after clamping; KryAnimationApply samples at time t and writes position/
rotation/scale components onto target nodes via KryNodeGet
- src/scene/node_animation_player.c: AnimationPlayer node (registered on the
KRY_NODE_TIMER slot) advances the current animation each process tick and
applies it; on non-loop finish emits an 'animation_finished' signal via the
Phase 2 signal bus. Loop + play/pause state in AnimationPlayerProps
- src/scene/node_animated_sprite2d.c: AnimatedSprite2D cycles frames of a grid
sprite sheet at a given fps, drawing the current sub-rect via the shared
picture texture cache
- include/node2d_props.h: AnimationPlayerProps (holds up to 4 animations) +
AnimatedSprite2DProps + allocators
Example + test:
- examples/23_animation.kry: a Sprite2D whose y position is keyframe-animated
- tests/animation_test.c: linear/step interpolation, hold clamps, and
KryAnimationApply writing position.x/rotation; wired into 'make test'