- 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.
推薦閱讀
- 摩登創客:與智能手機和平板電腦共舞
- Python高級編程
- Mastering matplotlib
- 實戰低代碼
- Hands-On Microservices with Kotlin
- Android Native Development Kit Cookbook
- Java SE實踐教程
- Orleans:構建高性能分布式Actor服務
- Flask Web開發:基于Python的Web應用開發實戰(第2版)
- 監控的藝術:云原生時代的監控框架
- STM8實戰
- Python 3快速入門與實戰
- Arduino Electronics Blueprints
- Microsoft XNA 4.0 Game Development Cookbook
- C語言從入門到精通(微視頻精編版)