Join GitHub today
Make our own DMI alternative? #256
Right now sprites in game are direct references to a PNG on disk. To have multiple states available to things like door icons changing on open, the render able component needs to load these before hand in the component definition.
Its kinda clunky, especially with animated states.
Personally I think we should keep the idea behind the DMI format. I already have a spec for a DMI-like format that isn't stupid, GitHub and VCS friendly and more easily workable. The spec can be seen here. There's Python and Rust tooling for it already and writing a C# library can't be hard.
@Silvertorch5 you're the rendering man, opinions?
We should however consider how this'll fit into the current rendering system, including abstractions.
If RSI is what's used in the end, here's a Json Schema to validate it:
Which was used to validate this example (only modifications from the main RSI example is an example flag, couldn't think of an example selector)
You can play with the above here: http://www.jsonschemavalidator.net/
Json.NET is free to use commercially as MIT and the most popular .NET library on nuget.