diff --git a/arcade/examples/sprite_move_scrolling.py b/arcade/examples/sprite_move_scrolling.py index 121e304e34..ecdf753bb1 100644 --- a/arcade/examples/sprite_move_scrolling.py +++ b/arcade/examples/sprite_move_scrolling.py @@ -182,13 +182,12 @@ def on_resize(self, width: int, height: int): """ super().on_resize(width, height) self.camera_sprites.match_window() - self.camera_gui.match_window() def main(): """ Main function """ # Create a window class. This is what actually shows up on screen - window = arcade.Window(WINDOW_WIDTH, WINDOW_HEIGHT, WINDOW_TITLE) + window = arcade.Window(WINDOW_WIDTH, WINDOW_HEIGHT, WINDOW_TITLE, resizable=True) # Create and setup the GameView game = GameView() diff --git a/arcade/examples/sprite_move_scrolling_shake.py b/arcade/examples/sprite_move_scrolling_shake.py index b4e0b65e6b..e0f3f58cc8 100644 --- a/arcade/examples/sprite_move_scrolling_shake.py +++ b/arcade/examples/sprite_move_scrolling_shake.py @@ -52,10 +52,8 @@ def __init__(self): # Physics engine so we don't run into walls. self.physics_engine = None - # Create the cameras. One for the GUI, one for the sprites. - # We scroll the 'sprite world' but not the GUI. + # Create camera that will follow the player sprite. self.camera_sprites = arcade.camera.Camera2D() - self.camera_gui = arcade.camera.Camera2D() self.camera_shake = arcade.camera.grips.ScreenShake2D( self.camera_sprites.view_data, @@ -197,13 +195,12 @@ def on_resize(self, width: int, height: int): """ super().on_resize(width, height) self.camera_sprites.match_window() - self.camera_gui.match_window(position=True) def main(): """ Main function """ # Create a window class. This is what actually shows up on screen - window = arcade.Window(WINDOW_WIDTH, WINDOW_HEIGHT, WINDOW_TITLE) + window = arcade.Window(WINDOW_WIDTH, WINDOW_HEIGHT, WINDOW_TITLE, resizable=True) # Create and setup the GameView game = GameView()