SiliconGhetto Engine API
    Preparing search index...

    Function moveAndCollide

    • Move an entity by a delta and stop at collisions with other entities.

      Parameters

      • e: number

        The entity ID to move

      • dx: number

        Horizontal movement delta in pixels

      • dy: number

        Vertical movement delta in pixels

      Returns number

      The entity ID of the collided entity, or 0 if no collision