- Home /
What technique for tile-based 2D game
Hello, I plan to do 2D game with procedurally generated worlds using tiles and I don't know what method to use. Let me explain...
I want tiles that will:
- Be easily created and manipulated, having low performance cost (excluding initial world generation, that will be more or less performance-hungry anyways) 
- Be able to fully use scripts (use variables, functions etc.) 
- Have independent variables/functions from other tiles 
- Be able to change sprites using scripts 
- Be able to be part of chunks (using arrays?) in the world to be easily serializable (saved/loaded) and otherwise mass manipulated 
 
Now comes the methods. As far as i know, i have 3 options: Tilemap, Mesh and using old, classic Objects.
- Regarding tilemap, as far as i know, you can only add sprites and colliders and that they are hard to manipulate. 
- Meshes might be the best solution, if i understand it correctly you can have different variables for different mesh. 
- Objects are probably very inneficent as far as i know. Don't know otherwise. 
 
Anyways tell me your thoughts and correct me on anything, oh and please don't just write use this method. Explain it to me, the pros/cons, etc. Thank you.
Your answer
 
 
             Follow this Question
Related Questions
Tilemap has gap between tiles, how do I get rid if it. 1 Answer
How to create tile prefabs? 1 Answer
How do I read from TilePalette? 0 Answers
Falling Tiles 1 Answer
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                