52ky 发表于 2022-11-9 14:29:11

Android研究院之游戏开发横竖屏的切换(十七)文档

玩过Android手机的同学们应该都很清楚手机反正屏的机制吧,大部分游戏都是无法反正屏切换的,有的游戏只能竖屏的玩,有的游戏只能横屏玩,为什么开发中要强制游戏为单一的屏幕呢?原因很简单就是由于切换屏暗地带来的问题过多开发起来过于费事所以大多数游戏都会强制横屏或许竖屏。的今天我用一个小例子带同学们盘点一下Android开发中反正屏切换的一些开发技巧。

(Students who have played with Android phones should be very clear about the mechanism of the mobile phone's anyhow screen. Most games cannot be switched from one screen to another. Some games can only be played vertically, while others can only be played horizontally. Why should games be forced to be a single screen in development? The simple reason is that there are too many problems in the dark area of the switching screen. It is too difficult to develop, so most games will force the horizontal screen or vertical screen. Today, I used a small example to take the students to check some development skills of reverse screen switching in Android development.)




页: [1]
查看完整版本: Android研究院之游戏开发横竖屏的切换(十七)文档