- Game Development Patterns and Best Practices
- John P. Doran Matt Casanova
- 114字
- 2021-07-02 23:43:43
The app
The M5App or application layer is a class responsible for interfacing with the operating system. Since we are trying to write clean, reusable code, it is important that we don't mix our game code with any operating system function calls. If we did this, our game would be difficult to port to another system. The M5App class is created in WinMain and responsible for creating and destroying every other system. Anytime our game needs to interact with the OS, including changing resolution, switching to full screen, or getting input from a device, we will use the M5App class. In our case, the operating system that we will be using will be Windows.
推薦閱讀
- WildFly:New Features
- Java高并發核心編程(卷2):多線程、鎖、JMM、JUC、高并發設計模式
- Web Development with Django Cookbook
- Hands-On Enterprise Automation with Python.
- 青少年Python編程入門
- JavaScript 程序設計案例教程
- 數據結構案例教程(C/C++版)
- C/C++程序員面試指南
- Learning Apache Karaf
- Learning jQuery(Fourth Edition)
- LabVIEW虛擬儀器程序設計從入門到精通(第二版)
- Unity 2018 Augmented Reality Projects
- 單片機原理及應用技術
- Java EE架構設計與開發實踐
- Mastering ASP.NET Core 2.0