Skip to content

Improved asset import parameters #234

Description

@flatpickles

Two problems with current approach (function-based imports):

  • No defaults
  • Can't reference them directly/declaratively.

A better design will solve both these problems. Maybe a helper class that can be instantiated in the parameter declaration?

assetImport = new ImageImport("/assets/default.png");

update() {
    ctx?.drawImage(assetImport.image, 0, 0);
}

TBD - more thought needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status
    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions