如何在 XNA 中实现蠕虫风格的可破坏地形? [英] How to implement a Worms style destructible terrain in XNA?

查看:27
本文介绍了如何在 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆