Skip to content

Load and unload map levels while the game is running. #30

Description

@relh

I want to release graphics used by health bars, drawn shapes, and selection outlines when I unload a level while the game stays open.

Cleanup calls would let the game release those resources without reaching into the drawing code. Quitting already frees them; the benefit is releasing them between levels.

PR #10 adds calls for resources the game owns. The game decides when to call them, while its graphics context is available. This does not add a level-loading system.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions