Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions arcade/examples/minimap_texture.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

WINDOW_WIDTH = 1280
WINDOW_HEIGHT = 720
ASPECT_RATIO = WINDOW_WIDTH / WINDOW_HEIGHT
WINDOW_TITLE = "Minimap Example"

# How many pixels to keep as a minimum margin between the character
Expand Down Expand Up @@ -203,8 +204,8 @@ def on_resize(self, width: int, height: int):
Handle the user grabbing the edge and resizing the window.
"""
super().on_resize(width, height)
self.camera_sprites.match_window()
self.camera_gui.match_window()
self.camera_sprites.match_window(aspect=ASPECT_RATIO, projection=False)
self.camera_gui.match_window(aspect=ASPECT_RATIO, projection=False)


def main():
Expand Down
Loading