Skip to content

Instantly share code, notes, and snippets.

@devbyray
Last active January 31, 2020 09:12
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 devbyray/d55e08798106f0ae10ea7bf05af9d60b to your computer and use it in GitHub Desktop.
Save devbyray/d55e08798106f0ae10ea7bf05af9d60b to your computer and use it in GitHub Desktop.
// Build character functionality for Lord of the Rings game
enum CharacterType {
NONE = 'none',
HOBBIT = 'hobbit',
ELF = 'elf',
}
class Character {
public armour: number = 100;
public height: number = 0
public width: number = 0
public weight: number = 0
public type: CharacterType = CharacterType.NONE
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment