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

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.

主站蜘蛛池模板: 隆德县| 新田县| 聂拉木县| 清河县| 沁水县| 衢州市| 南郑县| 内江市| 吴川市| 嘉善县| 宝应县| 平阴县| 建瓯市| 兴国县| 禹城市| 额敏县| 朔州市| 泽库县| 玉环县| 高邑县| 四川省| 宜丰县| 台北市| 高陵县| 石狮市| 玛多县| 石城县| 达日县| 平定县| 申扎县| 绥棱县| 云阳县| 涿鹿县| 深水埗区| 云安县| 保定市| 安福县| 瑞丽市| 肃南| 阜城县| 五河县|