C#-APP:DirectX中的标题屏幕 [英] C#-APP:Title Screen in DirectX

查看:79
本文介绍了C#-APP:DirectX中的标题屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找这样的时间而不使用已弃用的DirectDraw。我正在寻求将DX9与VB .Net或C#代码一起使用。我更喜欢C#但VB .Net代码很好。


我已经拥有了我的主表单,其中包含所有图形和绘图。但是,如果我可以制作TitleScreen那样的话会很棒。顺便说一下,我正在使用全屏模式。


无论如何,TitleScreen将首先以全屏模式出现,并且在屏幕中间,它会说按Enter键开始游戏。然后当您在键盘上按Enter键时,主表单将会显示我之前说过的所有图形。


感谢您提供任何帮助!

I have been looking for hours for something like this without using the deprecated DirectDraw. I''m looking to use DX9 with either VB .Net or C# code. I would prefer C# but VB .Net code is fine.

I already have my main form with all the graphics and such draw on it. However, it would be great if I could make a TitleScreen sort of thing. I am using fullscreen mode, by the way.

Anyways, the TitleScreen would come up first in full screen mode and in the middle of the screen it would say, "Press enter to start the game". And then when you press Enter on the Keyboard, the main form would come up with all those graphics drawn on it I stated previously.

Thanks for any help given whatsoever!

推荐答案

哦,顺便说一句,我正在使用2005。
Oh, btw, I am using 2005.


标题屏幕通常不是处理器或图形密集型的,因此你可能会逃脱使用GDI在屏幕上绘制位图。
Title screens are not usually processor or graphically intensive, therefor you could probably get away with using GDI to draw a bitmap to the screen.


好吧,我希望我可以在不同的表单上操作它。这是因为我还有一个选项,关于选项,玩游戏选项。在这里,我将在Paint中快速绘制一个示例。

Well, I was hoping I could operate it on a different form. This is because that I will also have an options option, about option, play game option. Here I''ll draw up an example real quick in Paint.


这篇关于C#-APP:DirectX中的标题屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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