Skip to content

Instantly share code, notes, and snippets.

@franksands
Created December 11, 2015 00:17
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/aa60d4c423373503ba5f to your computer and use it in GitHub Desktop.
Save franksands/aa60d4c423373503ba5f to your computer and use it in GitHub Desktop.
class LivingThing() {
// ...code in the class...
}
hero = LivingThing("Elsa", 50, 80, "Axe");
// ...some more code...
if (someCondition) {
hero.health -= 50;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment