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

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, filenames, file extensions, pathnames, and user input, are shown as follows: "As we can see, the AppDelegate.swift and the ViewController.swift files were automatically created for us and right below that, we'd find the Main.Storyboard file."

A block of code is set as follows:

let score = player.score
var scoreCountNum = 0

do {
    HUD.scoreText = String(scoreCountNum)
    scoreCountNum = scoreCountNum * 2
} while scoreCountNum < score

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

// Collision bit masks
typedef NS_OPTIONS(NSUInteger, AAPLBitmask) {
    AAPLBitmaskCollision        = 1UL << 2,
    AAPLBitmaskCollectable      = 1UL << 3,
    AAPLBitmaskEnemy            = 1UL << 4,
 AAPLBitmaskSuperCollectable = 1UL << 5,
    AAPLBitmaskWater            = 1UL << 6
};

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: " Alternately, imagine that the player lost all of their lives and got a Game Over message."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 阳江市| 余姚市| 濮阳县| 买车| 隆德县| 治多县| 嘉善县| 达日县| 东明县| 岢岚县| 凤台县| 台东市| 衡东县| 库车县| 东山县| 卢湾区| 东方市| 长兴县| 汝南县| 囊谦县| 临西县| 云浮市| 连山| 白沙| 台南市| 连南| 西藏| 韩城市| 贡山| 娱乐| 元氏县| 平凉市| 南岸区| 元江| 奎屯市| 柳州市| 搜索| 琼海市| 怀宁县| 嘉义市| 临朐县|