Skip to main content
added 1 character in body; edited title
Source Link
jalxp
  • 123
  • 4

In aan Entity-Component-System architecture how should my map be represented?

I'm migrating a 2D game I've been making using only SpriteKit to aan 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!

In a Entity-Component-System architecture how should my map be represented?

I'm migrating a 2D game I've been making using only SpriteKit to a 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!

In an Entity-Component-System architecture how should my map be represented?

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!

Source Link
jalxp
  • 123
  • 4

In a Entity-Component-System architecture how should my map be represented?

I'm migrating a 2D game I've been making using only SpriteKit to a 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!