Skip to content

Instantly share code, notes, and snippets.

@franksands
Created December 9, 2015 01:02
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 franksands/86cfce7ab231008e7642 to your computer and use it in GitHub Desktop.
Save franksands/86cfce7ab231008e7642 to your computer and use it in GitHub Desktop.
hero = LivingThing("Elsa", 50, 80, "Axe");
hero.health -= 10; // Elsa takes 10 points of damage
if (hero.health < 0) {
print(hero.name + ' has died!')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment