我想为我的游戏制作一个想法原型。这款游戏的理念是,玩家将挖掘地面,创造隧道并寻找宝藏。
我正在寻找创建“蠕虫式”地形,为在隧道中徘徊和跳跃的玩家提供碰撞检测。在这些图片中可以看到这种类型的动态地形的示例。
我的问题是如何实现这种类型的最佳方法可破坏的地形?我正在使用 XNA 游戏工作室。
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.
发布评论
评论(2)
Riemer 与他在 XNA 中开发的游戏有类似的方法,炮弹会导致地形被“破坏”,并且先前位于所述地形上的任何道具都会相应移动。
它需要根据您的需求进行重构和改进,但这只是一个开始。
Riemer 也有很多其他方面的教程可供选择。
http://www.riemers.net/eng/Tutorials/ XNA/Csharp/Series2D/Adding_craters.php
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
有两种可能性,八种可行,但这取决于 XNA 实现起来有多容易:
There are two possibilties, eighter one work, but it depends on XNA how easy it is to implement: