博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Analyzing the structure of GameStateManagement
阅读量:5351 次
发布时间:2019-06-15

本文共 1108 字,大约阅读时间需要 3 分钟。

1.       Instancing a new ScreenManager object, adding it as a component.

2.       Calling the AddScreen method of ScreenManager to Add BackgroundScreen and MainMenuScreen.

3.       When calling the update method of ScreenManager, the updating order for each added child screen will be reversed as they were added. Handling will like stack.

4.       Because of each child screen is inherits from the parent screen GameScreen, so, if the child screen isn’t override the update method, then it will call the parent one.

5.       Calling draw method to draw the added screen in normal order, if the child is transitioned off, then its state will be hidden, and this indicate that the child will not be drawn.

6.       The BackgroundScreen will always on.

7.       After chose one item from MainMenuScreen, the corresponding screen will be add to the end of current screen list( for the #3).

8.       About the child, the cancel event will remove itself out from the screen list.

9.       If the child screen is a popup, then the other screen will still be drawn and covered by 2/3 alpha back color sprite.

转载于:https://www.cnblogs.com/jerryhong/articles/1083965.html

你可能感兴趣的文章
【VS开发】ATL辅助COM组件开发
查看>>
FlatBuffers In Android
查看>>
《演说之禅》I & II 读书笔记
查看>>
thinkphp3.2接入支付宝支付接口(PC端)
查看>>
response和request
查看>>
【转】在Eclipse中安装和使用TFS插件
查看>>
回到顶部浮窗设计
查看>>
C#中Monitor和Lock以及区别
查看>>
【NOIP2017】奶酪
查看>>
$ 一步一步学Matlab(3)——Matlab中的数据类型
查看>>
5.6.3.7 localeCompare() 方法
查看>>
Linux下好用的简单实用命令
查看>>
常用web字体的使用指南
查看>>
描绘应用程序级的信息
查看>>
poj2406-Power Strings
查看>>
2018/12/18 JS会像Linux一样改变编程
查看>>
php环境搭建脚本
查看>>
FTP主动模式与被动模式说明
查看>>
php 编译常见错误
查看>>
MES架构
查看>>