Skip to content

Add DSL API #971

@AlmasB

Description

@AlmasB

Currently we have shortcuts for .view(filename). We now also support loading from a URL.

Current API:

.view(getAssetLoader().loadTexture(getClass().getResource("...")))
  • New additional API:
.view(getClass().getResource("..."))
  • Same addition is needed for .viewWithBBox()
  • FXGL.texture(URL)
  • FXGL.image(URL)
  • FXGL.play(URL)
  • FXGL.loopBGM(URL)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions