- Home /
Question by
Sannerex · Jul 25, 2018 at 02:09 AM ·
programmingdatatile
How to have a character occupy multiple tiles?
I ask because I am trying to make a roguelike as a learning process. Since my tiles know about their index and position in the map I thought about using either a single dimensional array, which would store the tiles the character occupies, or a list, because it would be easier to modify for characters that could change how many tiles they occupy. I think I might be wrong on using those implementations.
So how could I make a character occupy multiple tiles?
Comment
Your answer