We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
vue+cordova开发横屏游戏的坑 (zhouwenbin)
游戏本身就不说了,使用vue开发的,比较好上手,后期如果需要对接数据,再引入vuex,vue-resource,下面整理下开发中遇到的坑 屏幕适配游戏的需求是要可以横屏+全屏,所以适配方案选择缩放viewport的方案,然后设计稿尺寸多大就做成多大。需要注意的是ios在切换横竖屏的时候,window.screen.width值是不会变的,需要动态改变下。...
window.screen.width
The text was updated successfully, but these errors were encountered:
No branches or pull requests
vue+cordova开发横屏游戏的坑 (zhouwenbin)
The text was updated successfully, but these errors were encountered: