This guide will get you up and running with OpenGML.
If you haven't yet, download OpenGML, or build it from source with these instructions.
You will need a terminal program to run OpenGML. On Windows, cmd.exe
or Git SCM should work. Make sure that OpenGML is on your PATH. (Instructions: Windows, Linux).
If you are using windows, replace ogm
with ogm.exe
in all the following commands.
Ensure that the following command displays the OpenGML version information:
ogm --version
If this does not work, return to step 1. Don't forget to type ogm.exe
instead of ogm
if you are using Windows.
To check that graphics are working, run the example game:
ogm ./demo/projects/example/example.project.gmx
Proceed to either of the following headers depending on what your goal is.
If you already have a GML project you would like to run in OpenGML, the following command should launch it:
ogm /path/to/MyProject.project.gmx
Assuming this works and there are no errors, you're done.
If you are new to GML or want to start a new project, this remainder of this guide will walk you through setting up a minimal example project.
OpenGML can interpret whole GML projects or just individual scripts. Let's start with just a single script.
Create a file called myscript.gml
and write the following line in it:
show_debug_message("Hello, World!");
If you then run ogm myscript.gml
, you should see the message Hello, World!
.
TBD
Look at how the project located at demo/projects/example
is structured. (TODO / TBD)