Created
December 16, 2018 05:30
-
-
Save Bejofo/6c393e4588511c8c6339f5c5b51f36ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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