我有一款objective C精灵套件游戏,它在标准窗口大小下运行良好,但是当游戏窗口调整为全屏时,主角精灵需要改变其y轴。为了实现这一点,我需要检查游戏循环中的窗口是否已经调整了大小。我该怎么做呢?
你可以使用nswindowdelegate。NSWindowDelegate协议有windowwwillresize:toSize:和windowwwillmove:方法。
我有一款objective C精灵套件游戏,它在标准窗口大小下运行良好,但是当游戏窗口调整为全屏时,主角精灵需要改变其y轴。为了实现这一点,我需要检查游戏循环中的窗口是否已经调整了大小。我该怎么做呢?
你可以使用nswindowdelegate。NSWindowDelegate协议有windowwwillresize:toSize:和windowwwillmove:方法。
javascript python java c# php android html jquery c++ css ios sql mysql arrays asp.net json python-3.x ruby-on-rails .net sql-server django objective-c excel regex ruby linux ajax iphone xml vba spring asp.net-mvc database wordpress string postgresql wpf windows xcode bash git oracle list vb.net multithreading eclipse algorithm macos powershell visual-studio image forms numpy scala function api selenium