Reputation:
I want to prototype an idea for a game I have. The idea for this game is that the player will dig through the ground, creating tunnels and finding treasure.
I'm looking to create 'worms style' terrain, with collision detection for the player wandering and jumping around the tunnels. Examples of this type of dynamic terrain can be seen in these pictures.
My question is how is the best way to implement this type of destructible terrain? I am using XNA game studio.
Upvotes: 18
Views: 17947
Reputation: 9966
Riemer has a similar approach to a game he developed in XNA, cannon shells cause the terrain to be "destroyed" and any props that were previously on said terrain are moved accordingly.
It needs to be refactored and improved for your needs but it's a start.
Riemer has a good selection of tutorials for other things too.
http://www.riemers.net/eng/Tutorials/XNA/Csharp/Series2D/Adding_craters.php
Upvotes: 7
Reputation: 10526
There are two possibilties, eighter one work, but it depends on XNA how easy it is to implement:
Upvotes: 4