Jump to content

Collisions on Randomly Generated Terrain


billmo
 Share

Recommended Posts

Ok, need some help/ guidance on what to do. 

 

What I have now is a sprite that is being generated randomly using simplex noise. I have successfully masked out the background so I'm left with just the terrain. I will be using this as my ground sprite for each level in my game.  So my problem comes to collisions. If I am generating the level's terrain on the fly, how would I go about making player collide with it?  I have found some fancy software that you can actually trace out the object and with a click it will generate a polygon shape .json file, but this only works if you have the image prior to using it - which I don't.

 

Any guidance would be greatly appreciated.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...