So I'm trying to create a game in sprite kit that is based on the tile system used in games like Pokémon. Since I am relatively new to this language and type of programming, I need some assistance on how to create this grid of tiles and how to make many, many SKSpritenodes with the same (and sometimes different) textures. I have tried creating the grid tile nodes in a method with local variables, but to have multiple of them I would have to call the method 100+ times to generate each tile in a different position adjacent to another. How can I go about designing this type of game?
Any assistance is greatly appreciated. Thanks in advance.