diff --git a/arcade/examples/camera_platform.py b/arcade/examples/camera_platform.py index c29a05cd6..52e607c30 100644 --- a/arcade/examples/camera_platform.py +++ b/arcade/examples/camera_platform.py @@ -10,6 +10,8 @@ import time +from pyglet.math import Vec2 + import arcade TILE_SCALING = 0.5 @@ -254,7 +256,7 @@ def on_update(self, delta_time): for bomb in bombs_hit: bomb.remove_from_sprite_lists() print("Pow") - self.camera.shake((4, 7)) + self.camera.shake(Vec2(4, 7)) # Pan to the user self.pan_camera_to_user(panning_fraction=0.12)