Skip to content

Commit

Permalink
Create Beginners - Fullscreen Mode.monkey2
Browse files Browse the repository at this point in the history
  • Loading branch information
Pakz001 committed Jul 3, 2016
1 parent 5dcde44 commit 8c2931e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Beginners - Fullscreen Mode.monkey2
@@ -0,0 +1,27 @@
#Import "<std>"
#Import "<mojo>"

Using std..
Using mojo..


Class MyWindow Extends Window

Method New()
Super.New("test",1024,768)
Fullscreen = True
End Method

Method OnRender( canvas:Canvas ) Override
App.RequestRender() ' Activate this method
' if key escape then quit
If Keyboard.KeyReleased(Key.Escape) Then App.Terminate()
End Method

End Class

Function Main()
New AppInstance
New MyWindow()
App.Run()
End Function

0 comments on commit 8c2931e

Please sign in to comment.