- Beginning C++ Game Programming
- John Horton
- 139字
- 2021-07-08 11:13:27
FAQ
Q) Why do we set the bee to inactive when it gets to -100? Why not just zero because zero is the left-hand side of the window?
A) The bee graphic is 60 pixels wide and its origin is at the top left pixel. So when the bee is drawn with its origin at x equals zero, the entire bee graphic is still on screen for the player to see. By waiting until it is at -100, we can be sure it is definitely out of the player's view.
Q) How do I know how fast my game loop is?
A) To measure this we will need to learn a few more things. We will add the ability to measure and display the current frame rate in Chapter 5: Collisions, Sound, and End Conditions - Making the Game Playable.
推薦閱讀
- Facebook Application Development with Graph API Cookbook
- 在最好的年紀學Python:小學生趣味編程
- R語言數據可視化之美:專業圖表繪制指南
- 深入淺出Spring Boot 2.x
- 基于Java技術的Web應用開發
- Learning ArcGIS Pro
- Reactive Programming With Java 9
- Getting Started with NativeScript
- Learning R for Geospatial Analysis
- C#程序設計(項目教學版)
- 數據分析與挖掘算法:Python實戰
- Clojure High Performance Programming(Second Edition)
- Web前端開發技術:HTML、CSS、JavaScript
- Visual Basic語言程序設計基礎(第3版)
- 你好!Python