room.AddTextBox("CONTACT SENSORS detect objects that touch the sensor, or the robot containing the sensor.",
2*28,2*32,500);
room.AddTextBox("IN-SAME-ROOM SENSORS detect objects that are in the same room.",
2*28,4*32,500);
room.AddTextBox("DIRECTIONAL SENSORS point to the direction of an object.",
2*28,5*32+16,500);
room.AddTextBox("For a sensor to detect an object:",
2*28,7*32,500);
room.AddTextBox("1) The Remote Control must be on.",
2*28,8*32,500);
room.AddTextBox("2) The shapes must match.",
2*28,9*32,500);
room.AddTextBox("3) The object must not be held by the cursor or a robot.",
2*28,10*32,500);
}
{// Room 1, Title Screen
Roomroom=rooms.elementAt(1);
room.SetMaterialOutline(0,0,19,11,1);
room.SetMaterialOutline(19,6,19,8,0);
room.SetMaterial(0,10,0);
room.AddTextBox("{BIG} SENSORS",7*28,2*32,500);
room.AddTextBox("Sometimes in Robotropolis you will want your robot to detect certain objects. For example you might want your robot to \"home in\" on an energy crystal and pick it up for you.",
2*28,4*32,500);
room.AddTextBox("Robots use special detectors called SENSORS to locate objects. You'll learn about them here.",
room.AddTextBox("Carry the sensor into Scanner. Connect a wire from the sensor output to the antenna input. Come back outside.",
2*28,2*32,350);
room.AddTextBox("Drop the crystal on Scanner's body. When a CONTACT sensor is inside a robot, it detects objects that touch the robot's body. Take Scanner with you.",
room.AddTextBox("This CONTACT sensor is on because the crystal is touching it. Turn the Remote Control off to freeze electricity. Move the crystal. The sensors work only if the Remote Control is on. Drop the crystal on Scanner's body.",
2*28,2*32,500);
room.AddTextBox("Turn the Remote Control on and off. Electricity in the sensor inside Scanner is frozen unless the Remote Control is on. Take Scanner with you.",
room.AddTextBox("This CONTACT sensor is shaped like a triangle. It detects triangles that touch it. Sensors detect objects that detect the object shape.",
2*28,2*32,300);
room.AddTextBox("Can you rewire Scanner to beep when a triangle touches it? Leave Scanner here.",
room.AddTextBox("This is an IN-SAME-ROOM sensor. It detects objects in the same room with it. Since this sensor has a square shape, it detects squares.",
2*28,2*32,400);
room.AddTextBox("It is on now because there is a square in the room. Take the sensor with you into the next room.",
room.AddTextBox("Now the sensor is off, since there is no square in the room. Go back and bring the square into this room. Drop the sqaure. Now the sensor comes on.",
2*28,2*32,450);
room.AddTextBox("(Remember that sensors can't detect an object you are holding.) Take the sensor with you.",
room.AddTextBox("Put the sensor inside Checkers and wire it to the antenna. Now go back and get the square. Checkers will beep when you drop the square. When an IN-SAME-ROOM sensor is inside a robot, it detects objects in the same room as the robot.",
room.AddTextBox("This is a DIRECTONAL sensor. It detects the direction of an object in the same room.",
5*28,2*32,300);
room.AddTextBox("Pick up the sensor. Move it around the token. Outputs pointing in the DIRECTION of the token turn on. Put the sensor and the token inside Checkers and carry the robot with you.",
room.AddTextBox("You can use the DIRECTIONAL sensor to make Checkers \"home in\" on the token. Go inside Checkers and connect a wire from the robot's right thruster (A) to the left pointing output of the sensor.",
2*28,2*32,450);
room.AddTextBox("Take the token out of Checkers and drop it left of the robot. Checkers moves left until it is even with the token. Take Checkers with you.",
room.AddTextBox("Complete the wiring as follows: Left thruster to the right pointing sensor output, top thruster to the bottom output, bottom thruster to the top output.",
2*28,2*32,500);
room.AddTextBox("Experiment by dropping the token in various parts of the room. Watch Checkers home in on it. Put the token inside Checkers and take the robot with you.",
room.AddTextBox("Now you'll see how to use the homing robot circuit to grab an object. First you need to activate the grabber. Use the IN-SAME-ROOM sensor inside Checkers. First disconnect the sensor from the antenna, and then wire the sensor to the grabber control input.",
room.AddTextBox("What happened when Checkers came into this room? Since there is no square in this room, the sensor connected to the grabber control turned off, and Checkers dropped the token.",
room.AddTextBox("This DIRECTIONAL sensor is pointing toward the triangle. Since there is a square in the room, Checker's grabber is on. Let Checkers grab the triangle.",
2*28,2*32,500);
room.AddTextBox("Now the DIRECTIONAL sensor is off. Sensors can't detect an object that a robot is holding. Take the sensor with you.",
room.AddTextBox("This is a SHAPE EDITOR. Use it to change the shape of an object.",
6*28,2*32,300);
room.AddTextBox("Pass the DIRECTIONAL sensor over it to change it from a triangle sensor to a square sensor.",
2*28,4*32,400);
room.AddTextBox("You can verify that it senses squares by taking it to the previous room. There is a sensor editor in the Town of Robotropolis, and there are several in the Innovation Lab.",
room.AddTextBox("There are a lot of sensors and shape editors in the Innovation Lab. You might want to go there and just experiment with the sensors.",
2*28,2*32,500);
room.AddTextBox("Before you continue in Robotropolis you will find it helpful to learn about the Toolkit and some Robot Circuits. Then you'll be ready for hours of fun in the Subway and Town.",