Created
August 10, 2015 18:58
-
-
Save deathbeam/8711528afc8b95c54fe9 to your computer and use it in GitHub Desktop.
MoonScript is beautifull
This file contains 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
with non | |
name = .project.name | |
music = .audio.newSource("music.ogg") | |
image = .graphics.newImage("image.png") | |
.load = -> | |
.audio.play(music) | |
.draw = -> | |
.graphics.print("Hello #{name}") | |
.graphics.draw(image, 10, 30) | |
.quit = -> | |
print "Bye #{name}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment