Tuesday, January 6, 2015

Monkey-X - Empty Code Template


Below a empty code template for Monkey.

Code below :
Import mojo

Class MyGame Extends App

    Method OnCreate()
        SetUpdateRate(60)
    End Method
    Method OnUpdate()        
    End Method
    Method OnRender()
        Cls 0,0,0 
        SetColor 255,255,255
    End Method
End Class


Function Main()
    New MyGame()
End function

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.