- Building Android Games with Cocos2d-x
- Raydelto Hernandez
- 208字
- 2021-07-23 19:46:30
Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text folder names, filenames, file extensions, pathnames, dummy URLs, and user input are shown as follows: "In order to add accelerometer support to our game, we are first going to add the following method declaration to our HelloWorldScene.h
header file."
A block of code is set as follows:
void HelloWorld::movePlayerByTouch(Touch* touch, Event* event) { Vec2 touchLocation = touch->getLocation(); if(_sprPlayer->getBoundingBox().containsPoint(touchLocation)){ movePlayerIfPossible(touchLocation.x); } }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
Size screenSize = glview->getFrameSize();
Size designSize(768, 1280);
std::vector<std::string> searchPaths;
searchPaths.push_back("sounds");
Any command-line input or output is written as follows:
cocos new MyGame -p com.your_company.mygame -l cpp -d NEW_PROJECTS_DIR
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Clicking on the Next button moves you to the next screen."
- Unity 2020 By Example
- ThinkPHP 5實(shí)戰(zhàn)
- 信息可視化的藝術(shù):信息可視化在英國
- Getting Started with Laravel 4
- C語言程序設(shè)計(jì)
- Julia高性能科學(xué)計(jì)算(第2版)
- 搞定J2EE:Struts+Spring+Hibernate整合詳解與典型案例
- ArcGIS for Desktop Cookbook
- Go語言開發(fā)實(shí)戰(zhàn)(慕課版)
- Visual Basic程序設(shè)計(jì)(第三版)
- Maker基地嘉年華:玩轉(zhuǎn)樂動(dòng)魔盒學(xué)Scratch
- Visual Basic程序設(shè)計(jì)全程指南
- Arduino機(jī)器人系統(tǒng)設(shè)計(jì)及開發(fā)
- PowerDesigner 16 從入門到精通
- Socket.IO Cookbook