I'm migrating a 2D game I've been making using only SpriteKit to an ECS architecture using GameplayKit, and I'm still a bit clueless on how to achieve this. I think I got the gist of ECS, but yet, I've got no clue on how to make my game map.
For reference my map is basically a 2D grid and on each coordinate there's a possibility to exist resources, or a player unit, enemy unit, etc. It's basically a build your base, collect resources, upgrade your stuff, survive waves of enemies kind of game.
In my non-ECS implementation I basically have a Map class that's keeping references to SKSpriteNodes, and I basically just have some procedural generation going on to generate my initial resources.
How do I define my map? Should it be an GKEntity
? I've got no clue on how exactly to represent it. Any tips that will give me a push will be very welcomed!