Skip to content

ig.Loader requires unnecessary modules? #47

Open

Description

@Joncom

.requires(
'impact.image',
'impact.font',
'impact.sound'
)

As far as I can tell, none of these are actually used within the ig.Loader class/module...

Edit:

It's for sure possible to have a game that doesn't use any ig.Font, but by requiring it here, the font code will still get baked into the final output, unnecessarily.

One could argue that some of those required modules do get used in the loader, because they are populated into the resources array, and then manipulated via methods such as .load...

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions