ITeye博客

GUI

共 2 篇文章

最近的成果

游戏一共有8个State: Intro、Loading、UserLogin、ServerList、SelectHero、CreateHero、InGame、Quit 其中Loading是一个特殊的State,不同State切换时若需要加载资源,就会通过Loading来中转。 状态基本事件流如下: Intro->UserLogin->ServerList->SelectHero->InGame->Quit 扩展流: SelectHero->CreateHero SelectHero->ServerList SelectHero->UserLogin InGame->SelectHero InG…

2015-09-09 18:44 · JME3 · GUI

运行时切换全屏/窗口大小

JME3没有直接提供改变屏幕大小的接口,我们可以通过settings来修改参数,然后调用Application的restart()方法来使这些参数生效。restart()方法源码是这么说的: [code="java"] /** * Restarts the context, applying any changed settings. * * Changes to the {@link AppSettings} of this Application are not * applied immediately; calling this method forces the context *…

2015-09-08 16:32 · JME3 · GUI