Challenges
Now it's yours. Change one thing at a time, run it, and see what happens.
- Change
BG_COLORto a different colour. Can you make the background white? - Make Bob twice as fast by changing
BOB_SPEED. Then make him very slow. - Make Bob bigger or smaller with
BOB_RADIUS. What happens to the arrow? - Change
WIDTHandHEIGHTto make a tall, thin window. - Give Bob blonde hair, then green skin.
- Make the arrow longer by changing the
18intip. - Make the game use the arrow keys instead of
WASD. Hint: look forpygame.K_UP. - Change the
FPSto 10. Does Bob still move at the same speed? Why?
Have fun with it, and send me what you build.