Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17117

Create box2d physics based on big tiled map?

$
0
0

@nichlaspro132 wrote:

Hi!

When you have a tiled map that has tile width and height of 32 px and create a much more simpler map like this:

(Plus there is perfect squared and lined objects) - You can easily detect all the tiles that are in use and then add physics around it like this:

BUT a lot of the more "hardcore" games I see tend to use tile width and height around 1px or just very less than 32px, an example:

and then my question is... How are you then supposed to add the physics? I mean if you added a physics box at every single tile here, wouldn't it take tons of memory. Or should you just switch over to a box2d-editor or how frowning
Would love to hear some experiences from building more defined levels! smile
Thank you.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 17117

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>