Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

适配问题 #3

Open
WckY opened this issue Aug 14, 2019 · 1 comment
Open

适配问题 #3

WckY opened this issue Aug 14, 2019 · 1 comment

Comments

@WckY
Copy link

WckY commented Aug 14, 2019

游戏是挺好的 但我实机看了下 你们的h5竟然没有适配横屏 即使你们公司没有要求 或者需求方没有要求 我都觉得怪怪的 哈哈 如果能兼容横屏 就完美了

@yuwanli
Copy link
Owner

yuwanli commented Aug 19, 2019

游戏是挺好的 但我实机看了下 你们的h5竟然没有适配横屏 即使你们公司没有要求 或者需求方没有要求 我都觉得怪怪的 哈哈 如果能兼容横屏 就完美了

横屏兼容其实技术实现上不麻烦的,游戏框架的话基本都是用的canvas,把对应的尺寸比例放缩即可,这个在开发的时候需要注意的就是,一定要以中心点为中心进行布局,这样即使横竖屏切换,焦点也不会丢失。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants