Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin generators #595

Merged
merged 49 commits into from
Sep 24, 2023
Merged

Plugin generators #595

merged 49 commits into from
Sep 24, 2023

Conversation

davesmith00000
Copy link
Member

@davesmith00000 davesmith00000 commented Sep 3, 2023

Provide a series of source generators to make working with Indigo and it's assets easier. This PR includes:

  • Config: Generates a Scala module with a GameConfig instance that is synchronised with your build settings (view port and background colour).
  • Asset listing: Generates a Scala moduke listing all your assets, respects folder structure, and provides helpers like sets of assets to load and accompanying simple materials etc.
  • Embed text: ...from any text file into a Scala module.
  • Embed GLSL shader pairs: Takes a vertex and fragment shader pair and embeds them into a Scala module
  • Data: Embed's (for instance) CSV or Markdown tables as either Enum's or Maps
  • Aseprite data: Can also be embedded directly into a Scala module

@davesmith00000 davesmith00000 requested a review from a team September 3, 2023 10:13
@davesmith00000 davesmith00000 self-assigned this Sep 3, 2023
@davesmith00000 davesmith00000 marked this pull request as ready for review September 18, 2023 21:01
@davesmith00000
Copy link
Member Author

I think this is there now, I'm going to test it on the Roguelike to double check it works as expected.

@davesmith00000
Copy link
Member Author

This has been tested and extensively expanded / improved through the process of using it on the roguelike in this PR: davesmith00000/roguelike#30

@davesmith00000 davesmith00000 merged commit 9c6dec3 into main Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant