- Beginning C++ Game Programming
- John Horton
- 266字
- 2021-03-26 16:12:18
Meet C++
Now that we know what games we will be building, let’s get started by introducing C++, Visual Studio, and SFML. One question you might have is, why use the C++ language at all? C++ is fast – very fast. What makes this true is the fact that the code that we write is directly translated into machine-executable instructions. These instructions are what make the game. The executable game is contained within a .exe file, which the player can simply double-click to run.
There are a few steps in the process of changing our code into an executable file. First, the preprocessor looks to see if any other code needs to be included within our own code and adds it. Next, all the code is compiled into object files by the compiler program. Finally, a third program, called the linker, joins all the object files into the executable file for our game.
In addition, C++ is well established at the same time as being extremely up to date. C++ is an object-oriented programming (OOP) language, which means we can write and organize our code using well-tested conventions that make our games efficient and manageable. The benefits as well as the necessity of this will reveal themselves as we progress through this book.
Most of this other code that I referred to, as you might be able to guess, is SFML, and we will find out more about SFML in just a minute. The preprocessor, compiler, and linker programs I have just mentioned are all part of the Visual Studio integrated development environment (IDE).
- 劍指Offer(專項突破版):數據結構與算法名企面試題精講
- Android Development with Kotlin
- Web交互界面設計與制作(微課版)
- Apache Spark Graph Processing
- Django:Web Development with Python
- Mastering Kali Linux for Web Penetration Testing
- SAS數據統計分析與編程實踐
- Microsoft Dynamics GP 2013 Reporting, Second Edition
- 高級語言程序設計(C語言版):基于計算思維能力培養
- Hands-On Full Stack Development with Go
- 單片機C語言程序設計實訓100例
- Mastering Akka
- Clojure for Machine Learning
- Building Serverless Architectures
- 新印象:解構UI界面設計