Skip to content

Instantly share code, notes, and snippets.

@Bejofo
Created December 16, 2018 05:30
Show Gist options
  • Save Bejofo/6c393e4588511c8c6339f5c5b51f36ad to your computer and use it in GitHub Desktop.
Save Bejofo/6c393e4588511c8c6339f5c5b51f36ad to your computer and use it in GitHub Desktop.
class tile{
constructor(){
this.terrain = terrain;
this.prop = prop;
this.entity = entity;
this.items = items; // Array
}
get glyph(){
if(this.entity !== null){
return this.entity.glyph
} else if(this.items.length !== 0) {
return //How to show stuff on group
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment