use of com.simibubi.create.foundation.ponder.element.ParrotElement.FacePointOfInterestPose in project Create by Creators-of-Create.
the class DebugScenes method fluidsScene.
public static void fluidsScene(SceneBuilder scene, SceneBuildingUtil util) {
scene.title("debug_fluids", "Showing Fluids");
scene.showBasePlate();
scene.idle(10);
Vec3 parrotPos = util.vector.topOf(1, 0, 1);
scene.special.createBirb(parrotPos, FacePointOfInterestPose::new);
scene.world.showSection(util.select.layersFrom(1), Direction.DOWN);
scene.overlay.showText(1000).text("Fluid rendering test.").pointAt(new Vec3(1, 2.5, 4.5));
scene.markAsFinished();
Object outlineSlot = new Object();
Vec3 vec1 = util.vector.topOf(1, 0, 0);
Vec3 vec2 = util.vector.topOf(0, 0, 1);
AABB boundingBox1 = new AABB(vec1, vec1).expandTowards(0, 2.5, 0).inflate(.15, 0, .15);
AABB boundingBox2 = new AABB(vec2, vec2).expandTowards(0, .125, 0).inflate(.45, 0, .45);
Vec3 poi1 = boundingBox1.getCenter();
Vec3 poi2 = boundingBox2.getCenter();
for (int i = 0; i < 10; i++) {
scene.overlay.chaseBoundingBoxOutline(PonderPalette.RED, outlineSlot, i % 2 == 0 ? boundingBox1 : boundingBox2, 15);
scene.idle(3);
scene.special.movePointOfInterest(i % 2 == 0 ? poi1 : poi2);
scene.idle(12);
}
scene.idle(12);
scene.special.movePointOfInterest(util.grid.at(-4, 5, 4));
scene.overlay.showText(40).colored(PonderPalette.RED).text("wut?").pointAt(parrotPos.add(-.25f, 0.25f, .25f));
}
use of com.simibubi.create.foundation.ponder.element.ParrotElement.FacePointOfInterestPose in project Create by Creators-of-Create.
the class DebugScenes method birbScene.
public static void birbScene(SceneBuilder scene, SceneBuildingUtil util) {
scene.title("debug_birbs", "Birbs");
scene.showBasePlate();
scene.idle(10);
scene.world.showSection(util.select.layersFrom(1), Direction.DOWN);
scene.idle(10);
BlockPos pos = new BlockPos(1, 2, 3);
scene.special.birbOnSpinnyShaft(pos);
scene.overlay.showText(100).colored(PonderPalette.GREEN).text("More birbs = More interesting").pointAt(util.vector.topOf(pos));
scene.idle(10);
scene.special.createBirb(util.vector.topOf(0, 1, 2), DancePose::new);
scene.idle(10);
scene.special.createBirb(util.vector.centerOf(3, 1, 3).add(0, 0.25f, 0), FacePointOfInterestPose::new);
scene.idle(20);
BlockPos poi1 = util.grid.at(4, 1, 0);
BlockPos poi2 = util.grid.at(0, 1, 4);
scene.world.setBlock(poi1, Blocks.GOLD_BLOCK.defaultBlockState(), true);
scene.special.movePointOfInterest(poi1);
scene.idle(20);
scene.world.setBlock(poi2, Blocks.GOLD_BLOCK.defaultBlockState(), true);
scene.special.movePointOfInterest(poi2);
scene.overlay.showText(20).text("Point of Interest").pointAt(util.vector.centerOf(poi2));
scene.idle(20);
scene.world.destroyBlock(poi1);
scene.special.movePointOfInterest(poi1);
scene.idle(20);
scene.world.destroyBlock(poi2);
scene.special.movePointOfInterest(poi2);
}
use of com.simibubi.create.foundation.ponder.element.ParrotElement.FacePointOfInterestPose in project Create by Creators-of-Create.
the class BeltScenes method transport.
public static void transport(SceneBuilder scene, SceneBuildingUtil util) {
scene.title("belt_transport", "Using Mechanical Belts for Logistics");
scene.configureBasePlate(0, 0, 5);
scene.setSceneOffsetY(-1);
scene.world.modifyKineticSpeed(util.select.everywhere(), f -> -.6f * f);
scene.showBasePlate();
scene.idle(5);
scene.world.showSection(util.select.fromTo(1, 1, 3, 2, 1, 5), Direction.DOWN);
scene.idle(20);
scene.world.showSection(util.select.fromTo(2, 1, 2, 4, 3, 2), Direction.SOUTH);
scene.idle(5);
scene.world.showSection(util.select.fromTo(1, 1, 2, 0, 1, 2), Direction.SOUTH);
scene.idle(10);
scene.special.movePointOfInterest(util.grid.at(2, 2, 0));
ItemStack stack = new ItemStack(Items.COPPER_BLOCK);
ElementLink<EntityElement> item = scene.world.createItemEntity(util.vector.centerOf(0, 4, 2), util.vector.of(0, 0, 0), stack);
scene.idle(13);
scene.world.modifyEntity(item, Entity::discard);
BlockPos beltEnd = util.grid.at(0, 1, 2);
scene.world.createItemOnBelt(beltEnd, Direction.DOWN, stack);
scene.idle(20);
ElementLink<ParrotElement> parrot = scene.special.createBirb(util.vector.topOf(0, 1, 2).add(0, -3 / 16f, 0), FacePointOfInterestPose::new);
scene.special.moveParrot(parrot, util.vector.of(1.78, 0, 0), 40);
scene.special.movePointOfInterest(util.grid.at(1, 1, 3));
scene.overlay.showText(60).placeNearTarget().pointAt(util.vector.topOf(beltEnd)).text("Moving belts will transport Items and other Entities");
scene.idle(20);
item = scene.world.createItemEntity(util.vector.centerOf(0, 4, 2), util.vector.of(0, 0, 0), stack);
scene.special.movePointOfInterest(util.grid.at(0, 3, 2));
scene.idle(10);
scene.special.movePointOfInterest(beltEnd);
scene.idle(3);
scene.world.modifyEntity(item, Entity::discard);
scene.world.createItemOnBelt(beltEnd, Direction.DOWN, stack);
scene.idle(8);
scene.special.movePointOfInterest(util.grid.at(3, 2, 1));
scene.special.moveParrot(parrot, util.vector.of(2.1, 2.1, 0), 60);
scene.idle(20);
scene.special.movePointOfInterest(util.grid.at(5, 5, 2));
scene.idle(30);
scene.special.movePointOfInterest(util.grid.at(2, 1, 5));
scene.idle(10);
scene.special.moveParrot(parrot, util.vector.of(.23, 0, 0), 5);
scene.idle(5);
scene.world.setKineticSpeed(util.select.everywhere(), 0f);
scene.idle(10);
scene.world.modifyEntities(ItemEntity.class, Entity::discard);
scene.special.movePointOfInterest(util.grid.at(2, 5, 4));
Vec3 topOf = util.vector.topOf(util.grid.at(3, 2, 2)).add(-0.1, 0.3, 0);
scene.overlay.showControls(new InputWindowElement(topOf, Pointing.DOWN).rightClick(), 60);
scene.idle(10);
scene.overlay.showText(60).placeNearTarget().pointAt(topOf.subtract(0, 0.1, 0)).attachKeyFrame().text("Right-Click with an empty hand to take items off a belt");
scene.idle(20);
scene.world.removeItemsFromBelt(util.grid.at(3, 2, 2));
scene.effects.indicateSuccess(util.grid.at(3, 2, 2));
scene.idle(20);
scene.special.changeBirbPose(parrot, FaceCursorPose::new);
}
Aggregations