如何在 XNA 中实现蠕虫风格的可破坏地形? [英] How to implement a Worms style destructible terrain in 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.
我的问题是如何实现这种可破坏地形的最佳方式?我正在使用 XNA 游戏工作室.
My question is how is the best way to implement this type of destructible terrain? I am using XNA game studio.
推荐答案
There's some nice code at the bottom of the this thread. Also, this is a great step-by-step tutorial on achieving a destructible terrain.
编辑 - 第二个教程的原始链接已损坏,因此我已链接到它的存档版本.
EDIT - The original link for the second tutorial was broken, so I've linked to an archived version of it.
这篇关于如何在 XNA 中实现蠕虫风格的可破坏地形?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!