Tutorial: Hello World
Step 1
Start Meg and Create an New Project. Make sure you give it a Title.
Step 2
Switch over to Map Editor, and open up the 'empty' map.
Step 3
Switch over to the Game Script page and open up the main entity either clicking on edit button in the top section of the page or double clicking on 'main.mps' under Object in File listing
It should bring up a script that looks like:
main()
{
}
The script should just contain the 'main' function and code inside the function will be ran on each frame.
Lets Replace that script with this:
//This is a comment, any text follow the 2 / on that line will be ignored
main()
{
/* Objects drawn with Draw only last that frame */
GraphicsDraw("HelloWorld", TEXT, 200, 200,1,0,0, WHITE ); /* See Scripting Interface for info on Draw Function */
}
and click Save.
For more on Scripting help see
Game Scripting
Step 4
Select 'Play' from the Project Menu. You should see HelloWorld display on the screen.
Step 5
Experiment.
Comming Soon