@JD557 screenshot of the formatted code needed. 😁
@JD557 Looks good! Not a million miles away from Indigo's.
With the benefit of hindsight, I have wondered about the wisdom of a DSL over a builder-like pattern. The latter is surely better for IDE discoverability, though obviously not as pretty to look at. 🤔
@davesmith00000@mastodon.gamedev.place Why not both?
It's probably not that hard to have both a DSL and a builder just by adding a named .withX
version to each operators.
This weekend I was playing around with defining an animation DSL.
I've wanted to play this for a while after watching @davesmith00000's interview for "Scala for Fun & Profit" and @kubukoz Playdate talk. Everyone's doing DSLs for gamedev!
It's still quite rough, but I think it's useful for things like menu animations. Maybe I'll use something like this in the next GameJam entry to add a bit more juice to the menus.
This example looks like this:
#ScreenshotSaturday