官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 清镇市| 寿宁县| 梓潼县| 天祝| 克什克腾旗| 长泰县| 滁州市| 黄梅县| 遂平县| 长海县| 织金县| 应城市| 诸城市| 汶上县| 泰兴市| 海安县| 孟村| 太仓市| 娱乐| 衡山县| 福州市| 大新县| 观塘区| 乐平市| 银川市| 赣榆县| 桂东县| 安国市| 丹阳市| 蓬莱市| 隆安县| 府谷县| 江西省| 桦川县| 大足县| 伊通| 嘉义县| 普格县| 文山县| 永平县| 醴陵市|