Monday, December 19, 2016

Monkey-X - Beginners - Block Commenting #Rem - code example

Anything typed here
will not cause a error.
Import mojo

Class MyGame Extends App
    Method OnCreate()
        ' You can disable a part of the code between #rem and #end
        DebugLog "This will not"
        DebugLog "be executed."
    End Method
    Method OnUpdate()
    End Method
    Method OnRender()
    End Method
End Class

Function Main()
    New MyGame()
End Function

No comments:

Post a Comment