Last active
December 14, 2015 22:39
-
-
Save tluyben/5159877 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import diddy | |
Import mojo | |
Class TestScreen Extends Screen | |
Method Start:Void() | |
End | |
Method Update:Void() | |
End | |
Method Render:Void() | |
Cls | |
DrawRect 200, 200, 250, 250 | |
If MouseDown And game.mouseX >= 200 And game.mouseX <= 450 And game.mouseY >= 200 And game.mouseY <= 450 | |
DrawRect 400, 600, 50, 50 | |
End | |
End | |
End | |
Class TestApp Extends DiddyApp | |
Method Create:Void() | |
SetGraphics(2048, 1536) | |
Start(New TestScreen) | |
End | |
End | |
Function Main:Int() | |
New TestApp() | |
Return 0 | |
End Function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment