Skip to content

optimization (collidable objects) #18

Description

@jul3x

Replace an Array type of the CollidableObjects container with a List (better for removing when collected). Sort everything by their posX, and don't check all of the CollidableObjects in every frame. Start from the last met collectible/enemy and end on the first which is out of the range of the player (basing on his x position).

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions