官术网_书友最值得收藏!

Resolution and aspect ratio

The resolution of a game is the pixel dimension of the screen. For example, a game could run at 1024x768. This means that the game is 1024 pixels wide and 768 pixels tall. The aspect ratio of a game is the ratio between the width and height (expressed width:height). This aspect ratio of a game is determined by dividing the resolution width by resolution height and then simplifying the fraction. So, for example, if your game has a resolution of 1024x768, the aspect ratio would be as follows:

Here, the fraction 4/3 is the aspect ratio 4:3.

The following diagram provides a list of common aspect ratios and related resolutions:


The following website provides a list of common resolutions specific to iOS devices:
  http://iosres.com/. Note that not all the aspect ratios are simplified fractions. For example, 16:10 is not simplified, as the simplified fraction would be 8:5.

When it comes to UI, the resolution of your game will be incredibly important. If you'll build to a single resolution/aspect ratio, the UI will be much easier to deal with. However, if you'll build a game that you want to run on multiple resolutions/aspect ratios (for example, a mobile project), you want your UI to scale appropriately, and you want to be able to easily change the resolution of your game so that you can test that it is scaling properly.

You can check out https://developer.android.com/guide/practices/screens_support.html#testing  for a list of common resolutions specific to   Android   devices.

Even if you will allow your resolution and aspect ratio to vary, you should still decide on a default resolution. This default resolution represents the resolution of your ideal design. This will be the resolution that your initial design and UI layout is based on, so if the resolution or aspect ratio varies, the UI will try to maintain the same design best as it can.

主站蜘蛛池模板: 锦州市| 讷河市| 乐陵市| 富蕴县| 尼勒克县| 迁西县| 台北县| 凤冈县| 凭祥市| 分宜县| 武清区| 大埔区| 上虞市| 鞍山市| 措勤县| 宝应县| 沈阳市| 丘北县| 永安市| 银川市| 临邑县| 迭部县| 濮阳县| 长春市| 龙陵县| 克什克腾旗| 渭源县| 齐齐哈尔市| 朔州市| 阆中市| 金塔县| 县级市| 灵武市| 红河县| 九寨沟县| 和静县| 清水县| 景泰县| 旅游| 西青区| 汪清县|