minor typo fix in state_design_pattern tutorial

This commit is contained in:
Josef Vlach
2020-05-25 08:33:55 +01:00
parent 0d3d787732
commit 71515b4a7d

View File

@@ -79,7 +79,7 @@ Second, there are some methods in the script for moving, but no implementation.
just uses ``pass`` to show that it will not execute any instructions when the methods are called. This is important.
Third, the ``_physics_process(delta)`` method is actually implemented here. This allows the states to have a default
``_phyics_process(delta)`` implementation where ``velocity`` is used to move the player. The way that the states can modify
``_physics_process(delta)`` implementation where ``velocity`` is used to move the player. The way that the states can modify
the movement of the player is to use the ``velocity`` variable defined in their base class.
Finally, this script is actually being designated as a class named ``State``. This makes refactoring the code