Hardware Reference
In-Depth Information
This program works very nicely on the Raspberry Pi. On the PC and on the Mac,
the response time isn't quite as quick, and as a result of this the player may keep
falling because the blocks aren't placed quickly enough. Take your time, and don't
start running around too fast expecting the bridge to keep you safe all the time!
You can experiment with faster and slower delays to improve this game, or you
can try creep mode (hold down the Shift key on the keyboard while moving) to
walk forward slowly.
FIGURE.4-2 he magicBridge.py program builds a glass bridge, allowing your
player to walk on water.
In the magicBridge.py program, you removed the time delay from the main
loop. What happens if you put this time delay back in? Experiment with different
delay values somewhere between the range of 0.1 to 2 seconds, and see how
this affects the usability of your magic bridge. What value provides the best
usability?
Search WWH ::




Custom Search