如何去除闪屏? [英] How to remove splash screen?

查看:41
本文介绍了如何去除闪屏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,大家好,我最近关注了一个教程 http://xnadevelopment.com/tutorials/thestateofthings/thestateofthings.shtml 在那里我想创建一种启动画面,并且它起作用了我设法让两个不同的屏幕相互交换(因此,如果我按 A,它会转到 TitleScreen,如果我按 B,它返回到 ControllerDetectScreen)

Right, hi guys, I recently followed a tutorial http://xnadevelopment.com/tutorials/thestateofthings/thestateofthings.shtml where I wanted to create a sort of splash screen, and it worked I managed to get a two different screens interchanging between one another (so, if I press A, it goes to TitleScreen, and if I press B, it returns back to ControllerDetectScreen)

这是代码 http://paste.org/43859

显然没有真正的游戏,但如果你能告诉我如何通过添加一个函数来删除 TitleScreen 和 ControllerDetectScreen(最好是空格键,并开始我的游戏(背景)添加并按下该功能后将是'CornFlowerBlue.)

Obviously there is no actual game, but if you could show me how to get rid of the TitleScreen and ControllerDetectScreen by adding a function to remove them both out of the way (preferably the spacebar, and to start my game (The background will be 'CornFlowerBlue after the function is added and pressed.)

谢谢!

推荐答案

使用相同的代码,您可以添加另一个 bool 来确定您是否在游戏中,并在任何地方添加另一个 if 语句你需要它来包含游戏的代码(可能是 UpdateDraw)

Using the same code, you could add another bool for whether you're in the game or not, and another if statement wherever you need it to contain the code for the game (probably Update and Draw)

这篇关于如何去除闪屏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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