In order to see if your installation works fine, we will run a sample from Moai's release.
Open up the ZeroBrane Studio and on the left panel (Project), click the button with the ellipsis (...) and head to
moai-sdk/samples/anim/anim-basic
, and click OK.Now your project is using one of Moai SDK's samples as project root. You'll see a lot of examples on how to do stuff with Moai SDK in the
moai-sdk/samples/folder
. Take a look at them after reading the book in order to understand more advanced topics.Now press F6 (or Project | Run).
If a window opens up and shows Moai SDK's logo rotating, yay! You're ready to go!
You will want to read the sample; especially take a look at the line that reads:
prop:moveRot ( 360, 1.5 )
This line is what makes the Moai logo move. The first parameter is the rotation angle and the second is the time it takes to perform the whole movement. Go ahead, play with it, change the angle and duration time and see what happens.