Skip to content

Instantly share code, notes, and snippets.

@deathbeam
Created August 10, 2015 18:58
Show Gist options
  • Save deathbeam/8711528afc8b95c54fe9 to your computer and use it in GitHub Desktop.
Save deathbeam/8711528afc8b95c54fe9 to your computer and use it in GitHub Desktop.
MoonScript is beautifull
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