XNA 和 WinForms [英] XNA and WinForms

查看:40
本文介绍了XNA 和 WinForms的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有办法在 Windows 窗体中使用 xna 游戏,反之亦然.我在网上找到了几个例子,但我不明白他们在做什么.我还想知道是否有办法让精灵像 Winforms 上的按钮一样......是否可以点击精灵?

I was wondering If there was a way to have an xna game within a windows forms or in vice versa. I have found several examples online, but I couldn't understand what they were doing. I was also wondering if there was a way to make a sprite act like a button on a winforms...is it possible to click on a sprite?

推荐答案

是的,全部.

Sprite 就像一个 Winforms 上的按钮:使用 onclick 事件

Sprite act like a button on winforms: use the onclick event

Windows 窗体中的 Xna 游戏:您需要添加对 Xna.framework.something 的引用......抱歉有点脱节,哪个类实现了它,但社区在 xna 论坛上有很多例子它应该生成一个工具箱控件以便能够拖放.示例:Nick Gravelyn 的 Tile Editor……它基于 youtube,可带您逐步完成.

Xna Game within Windows Forms: You would need to add a reference to the Xna.framework.something ... sorry kinda out of touch which class implements it but a lot of examples on the xna forums by the community It should generate a toolbox control to be able to drag and drop. Example: Nick Gravelyn's Tile Editor... it's youtube based which take you through it step by step.

Winforms 进入 Xna 游戏:我会说不要依赖于向 xna 游戏添加 winform 对象,因为它并不总是有效.例如:在 xbox360 上运行:D不过,答案与上述相同.示例:Winforms 组件成 xna

Winforms into Xna Game: I would say not to rely on adding a winform objects to xna games as it would not always work. e.g: running on xbox360 :D Though, it would be same thing as above for the answer. Examples: Winforms components into xna

这篇关于XNA 和 WinForms的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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