- Game Development Patterns and Best Practices
- John P. Doran Matt Casanova
- 121字
- 2021-07-02 23:43:43
The ObjectManager
The M5ObjectManager is responsible for creating, destroying, updating, and searching for game objects. A game object is anything visible or invisible in the game. This could include the player, bullets, enemies, and triggers--the invisible regions in a game that cause events when collided with. The derived M5Stage classes will use the M5ObjectManager to create the appropriate objects for the stage. They can also search for specific game objects to update game logic. For example, a stage may search for a player object. If one doesn't exist, the manager will switch to the game over stage.
As seen in the previous diagram, our game will use components. This means the M5ObjectManager will be responsible for creating those as well.
推薦閱讀
- 少兒人工智能趣味入門:Scratch 3.0動畫與游戲編程
- Facebook Application Development with Graph API Cookbook
- Python自動化運維快速入門
- Practical DevOps
- Java 9模塊化開發:核心原則與實踐
- VMware虛擬化技術
- Mastering JBoss Enterprise Application Platform 7
- UVM實戰
- Python深度學習原理、算法與案例
- The Professional ScrumMaster’s Handbook
- PyQt編程快速上手
- 奔跑吧 Linux內核
- MongoDB Cookbook(Second Edition)
- Continuous Delivery and DevOps:A Quickstart Guide Second Edition
- R的極客理想:量化投資篇