platformer - v1.0.0
    Preparing search index...
    • ECS system that applies player input to movement and climbing logic.

      Updates:

      • Horizontal velocity from directional input
      • Jumping when grounded
      • Climbing behavior (disables gravity while climbing)

      Parameters

      • ecs: default

        The ECS world instance.

      • options: {
            keybinds: {
                down: string;
                jump: string;
                left: string;
                right: string;
                up: string;
            };
            variables: {
                coinValue: number;
                gravity: number;
                jump: number;
                lives: number;
                speed: number;
            };
        }

        Game configuration and tunable variables.

      Returns void

      • Operates on entities with transform, rigidbody, and control.
      • Climbing overrides gravity.
      • Jump only triggers when grounded.