use of com.ilargia.games.entitas.core.Entitas in project Entitas-Java by Rubentxu.
the class MatchOneState method initialize.
@Override
public void initialize() {
entitas = new Entitas();
EntityIndexExtension.addEntityIndices(entitas);
// Input
World physics = engine.getManager(BasePhysicsManager.class).getPhysics();
BodyBuilder bodyBuilder = engine.getManager(BasePhysicsManager.class).getBodyBuilder();
Camera camera = engine.getManager(BaseSceneManager.class).getDefaultCamera();
Batch batch = engine.getManager(BaseSceneManager.class).getBatch();
EmitInputSystem emitInputSystem = new EmitInputSystem(entitas.input, physics, camera);
systems.add(new ProcessInputSystem(entitas)).add(new GameBoardSystem(entitas.game)).add(new FallSystem(entitas.game)).add(new FillSystem(entitas.game)).add(new ScoreSystem(entitas)).add(new RemoveViewSystem(entitas.game, physics)).add(new AddViewSystem(entitas.game, assetsManager, bodyBuilder)).add(new AnimatePositionSystem(entitas.game)).add(new DestroySystem(entitas.game)).add(new RendererSystem(entitas, camera, batch, physics));
}
Aggregations