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

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.

主站蜘蛛池模板: 长白| 巨野县| 威海市| 莱芜市| 东安县| 文安县| 五家渠市| 喀喇沁旗| 华阴市| 疏附县| 临邑县| 成都市| 铜陵市| 炎陵县| 双桥区| 额敏县| 克拉玛依市| 耒阳市| 水城县| 青海省| 神池县| 铜陵市| 微博| 定州市| 安西县| 天祝| 正宁县| 德阳市| 揭阳市| 建始县| 云和县| 曲周县| 资中县| 巨鹿县| 湖南省| 台中市| 锦屏县| 社旗县| 时尚| 顺义区| 依安县|