Giter Site home page Giter Site logo

Comments (5)

kocokolo avatar kocokolo commented on April 28, 2024

你来着问这个问题,让我怎么说你好。

from hilo.

hareboy avatar hareboy commented on April 28, 2024

好吧,我知道了,我的意思是有木有现成的方案。你这里提供的例子都不是适配的。所以要问一下

from hilo.

06wj avatar 06wj commented on April 28, 2024

这个可以通过判断屏幕宽高然后设置stage的scaleX和scaleY来实现。
下一版会考虑内置几种缩放模式简化开发

from hilo.

hareboy avatar hareboy commented on April 28, 2024

http://carepedia.cn/weui/englishname/index.html 目前就设置了个虚拟宽度640,然后按屏幕宽高比,设置高度。android和iphone 大多数可以适配,就是在浏览器中有标题栏导致显示不全问题。

from hilo.

06wj avatar 06wj commented on April 28, 2024

做的不错啊~ 游戏内部布局只有通过自己计算高度来适配了

from hilo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.