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

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.

主站蜘蛛池模板: 济源市| 古蔺县| 栾川县| 前郭尔| 泾阳县| 上栗县| 黔南| 兰西县| 合江县| 望奎县| 大化| 广灵县| 枣阳市| 浦江县| 夏津县| 绥德县| 遂溪县| 固始县| 平凉市| 扎兰屯市| 合川市| 阿图什市| 砀山县| 平南县| 台东市| 泾阳县| 西和县| 鹿泉市| 连江县| 永宁县| 吉木萨尔县| 万载县| 军事| 吉林省| 池州市| 同江市| 山西省| 布尔津县| 云龙县| 鹤峰县| 信丰县|