Skip to content

Commit

Permalink
typos and walls() -> pipes() typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jolly-jump authored and lordmauve committed Jun 30, 2022
1 parent 46a889f commit 5b68f3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/from-scratch.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ input or redrawing the screen. Loop forever and the game would just sit there,
so any loops need to finish quickly.

Pygame Zero calls an ``update()`` function when it wants you to update the
animation by one step, so we just need to a call to ``update_walls()``::
animation by one step, so we just need to add a call to ``update_pipes()``::

def update():
update_walls()
update_pipes()


The Bird
Expand Down Expand Up @@ -192,7 +192,7 @@ react when the bird moves back to its start position.
Again, this needs to be called every frame, so we add it to ``update()``::

def update():
update_walls()
update_pipes()
update_bird()

The final part of the bird logic is that it has to respond to player control.
Expand Down

0 comments on commit 5b68f3d

Please sign in to comment.