Temple of The Roguelike Forums

Development => Programming => Topic started by: xangelo on April 26, 2021, 03:15:49 AM

Title: DSLs for content creation?
Post by: xangelo on April 26, 2021, 03:15:49 AM
Hello all!

I'm wondering - when you get around to content development (skills,armour,monsters,etc.) Do you use some kind of DSL or do you require your content be produced in whatever language you're developing in?

So far I've been having content written in the programming language, but I've been toying with the idea of a DSL (perhaps co-opting something like TOML) to speed up content generation and reusability - but I'm not sure if it's really worth the trouble.

Thanks for the input!
Title: Re: DSLs for content creation?
Post by: Alexios on October 08, 2022, 02:45:53 PM
Depends on the scope. Implementing a DSL for a medium/big roguelike can help. But if you're making something small/new to development I would say no.
Still, if you need to do to scope, it's great. I make my DSL like CDDA's/Neo Scavengers: basically json with headers and comments.
It's a great for save files, and if you create a tool that creates entities.