Wednesday, December 24, 2014

Monkey Getting started - Cls example code (clearing the screen with a color)


I figured out how to create a simple graphical window. This is the code I got for it.

Code below :

Import mojo

Class MyGame Extends App
    Method OnCreate()
        SetUpdateRate(60)
    End
    Method OnRender()
        Cls(100,100,100)
    End
End

Function Main()
    New MyGame()
End

1 comment:

  1. Neat, EXCELLENT ! I'm just learning Graphics on Monkey.

    ReplyDelete