Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 489 Bytes

sprite_move_scrolling_shake.rst

File metadata and controls

19 lines (14 loc) · 489 Bytes
orphan:

Camera Shake

Screen shot of using a scrolling window

You can cause the camera to shake, as this example does when the player encounters a bomb. See the highlighted lines below.

.. literalinclude:: ../../arcade/examples/sprite_move_scrolling_shake.py
    :caption: sprite_move_scrolling_shake.py
    :linenos:
    :emphasize-lines: 155-169