Skip to content

v2.0

Choose a tag to compare

@B4uti4github B4uti4github released this 11 Feb 03:58
· 2 commits to main since this release

Added

  • Layer Stacking: Sequential execution of multiple active scenes (Z-Order).
  • Instance-Based Logic: Scenes are now ChScene instances with private this context.
  • DNA Mutation (The "Blueprint" Trick):
    • You can define new ChScene() molds as "blueprints" and store them without adding them to the engine.
    • These blueprints consume zero CPU/Execution time until you decide to inject their scripts into a live layer.
  • Dynamic Hot-Swapping: Use changeLayer() to swap the logic (Init, Scene, End) of a live layer using a blueprint's DNA.
  • Self-Management: Built-in pause(), run(), reset(), and kill() for every layer.
  • DeltaTime Clamping: Lag protection capped at 100ms.

Changed

  • High-Level Orchestration: Refactored from a simple drawing manager to a framework-agnostic logic orchestrator.
  • Execution Context: Scripts run via call(window, this), allowing professional OOP patterns and "Hot-Swapping" logic.

Deprecated

  • Numeric Indexes: Removed scene selection by number. Management is now strictly name-based and layer-oriented for professional scalability.