An overview of MVML, it's API's and helpers, and how to integrate it into your website.
To use the API, just download and unpack it into the root of your application.Download
To use the API, just add an
<mvml> tag and include these scripts:
If there's a
<script src="js/mvml/dependencies.js"></script> <script src="js/mvml/api.js"></script> <script src="js/mvml/load.js"></script>
srcattribute in the tag, it'll load the MVML from an external file. Otherwise it'll take the MVML from the inner text. Remember that MVML is sensitive to indentation and best-practice HTML formatting interferes with that See the source of this page for an example.
Just like HTML, MVML is built out of a syntax of tags. In order to build worlds, you'll need to understand these.
Just like HTML is essentially XML, MVML is essentially YAML. This is important because unlike XML, YAML is very strict on indentation. Even missing a space could cause an error which forces us to write legibly.
# Valid: title: Hello metaverse! scene: - primative: sphere - primative: box color: red # Broken title: Hey metaverse scene: - primative: sphere - primative: box color: red
You create worlds in MVML by stringing together components such as the
scene tag or
player tag. Knowing how to use these