Hardware Reference
In-Depth Information
cd minecraft-cannon
4.
Once you have navigated to the
minecraft-cannon
directory, type the fol-
lowing command to start the Minecraft cannon program:
python minecraft-cannon.py
Now you're ready to play with the cannon! To control the cannon, shown in Figure
6-10, you can use the following commands in LXTerminal window:
•
start
—Start up the cannon
•
rotate
[0-360 degrees]—Rotate the cannon between 0 and 360 degrees
•
tilt
[0-90 degrees]—Tilt the cannon upwards between 0 and 90 degrees
•
fire
—Fire the cannon
•
exit
—Exit and clear the cannon
FIGURE 6-10
Minecraft Pi cannon