I've completed the Flappybird assignment.
The gap between the pairs is now random with this change
to the pipepair definition:
The spawn of new pipepairs is now random thanks to the
following change in the PlayState mode (line 39):
And the medal and Pause features were done previously.
Now if I could just play this game with enough skill to illustrate
the changes...
Best I can do: the medal shows up as 0 and disappears when I eventually
score 1!! Thus, the code should read when score > 5, or whatever for the level.
Still, one can see the pause function, and that the gap varies, as does the schedule
of new pipe pairs.
No comments:
Post a Comment