- C++ Game Development By Example
- Siddharth Shekar
- 186字
- 2021-06-24 14:26:09
Conventions used
There are a number of text conventions used throughout this book.
CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "Here, the printing of Hello, World is tasked to the main function."
A block of code is set as follows:
#include <iostream>
// Program prints out "Hello, World" to screen
int main()
{
std::cout<< "Hello, World."<<std::endl;
return 0;
}
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
int main() {
//init game objects
while (window.isOpen()) {
// Handle Keyboard events
// Update Game Objects in the scene
window.clear(sf::Color::Red);
// Render Game Objects
window.display();
}
return 0;
}
Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "In Input and under Linker, type the following .lib files."
Warnings or important notes appear like this.
Tips and tricks appear like this.
推薦閱讀
- Aftershot Pro:Non-destructive photo editing and management
- 觸摸屏實用技術與工程應用
- BeagleBone By Example
- Deep Learning with PyTorch
- 計算機組裝·維護與故障排除
- Unity 5.x Game Development Blueprints
- 數字邏輯(第3版)
- micro:bit魔法修煉之Mpython初體驗
- Camtasia Studio 8:Advanced Editing and Publishing Techniques
- R Deep Learning Essentials
- 計算機組裝與維護(第3版)
- 微軟互聯網信息服務(IIS)最佳實踐 (微軟技術開發者叢書)
- 計算機組裝維修與外設配置(高等職業院校教改示范教材·計算機系列)
- 單片機系統設計與開發教程
- Blender Quick Start Guide