SiliconGhetto Engine API
    Preparing search index...

    Function updatePlatformer

    • Tick the platformer physics for one frame, returning movement deltas.

      Parameters

      • entity: number

        The entity ID with platformer physics

      • inputX: number

        Horizontal input (-1 for left, 0 for none, 1 for right)

      • dt: number

        Delta time in seconds since last frame

      Returns { dx: number; dy: number }

      Object with dx and dy movement deltas to apply