Skip to content

Instantly share code, notes, and snippets.

@tluyben
Last active December 14, 2015 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tluyben/5159877 to your computer and use it in GitHub Desktop.
Save tluyben/5159877 to your computer and use it in GitHub Desktop.
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