Skip to content

Memory usage #7

@mmmdule

Description

@mmmdule

Outer wall

When setting up the outer wall that never changes, instead of adding the blocks to the List, in the for loop for drawing simply check if X is 0 or 63 or if Y is 0 or 63.

If they are those edge values, simply draw a brick. Other wise either draw an object from the list or nothing.

MapGameObject class

Make the dictionary static, so that it isn't created for every instance, but is rather shared between all instances of the class

Unused items

Remove the Image list at the top of the form.cs code, and other unused variables/objects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions