本文整理汇总了Java中net.mostlyoriginal.game.manager.EntityFactorySystem类的典型用法代码示例。如果您正苦于以下问题:Java EntityFactorySystem类的具体用法?Java EntityFactorySystem怎么用?Java EntityFactorySystem使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EntityFactorySystem类属于net.mostlyoriginal.game.manager包,在下文中一共展示了EntityFactorySystem类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: MainScreen
import net.mostlyoriginal.game.manager.EntityFactorySystem; //导入依赖的package包/类
public MainScreen() {
world = new World();
// MANAGERS
world.setManager(new GroupManager());
world.setManager(new TagManager());
world.setManager(new UuidEntityManager());
world.setSystem(new EntityFactorySystem());
world.setSystem(new AssetSystem());
world.setSystem(new CameraSystem(CAMERA_ZOOM_FACTOR));
// LOGIC
world.setSystem(new BuoySystem());
world.setSystem(new LiquidLogicSystem());
world.setSystem(new PlayerControlSystem());
world.setSystem(new PhysicsSystem());
world.setSystem(new ClampedSystem());
world.setSystem(new AttachmentSystem());
world.setSystem(new RippleSystem());
// RENDER
RenderBatchingSystem batchingSystem = new RenderBatchingSystem();
world.setSystem(batchingSystem);
world.setSystem(new AnimRenderSystem(batchingSystem),false);
world.setSystem(new LiquidRenderSystem(batchingSystem), false);
world.initialize();
}