0

actually I'm trying to code my first 2d game with python, using arcade library. I want to know if there's a way to make the game fit any screen size without manual adjustment of the width and height:

import arcade

SCREEN_WIDTH = 800
SCREEN_HEIGHT = 600
Moez Ben Rebah
  • 170
  • 1
  • 12

1 Answers1

2

Option 1. Use full screen mode

Launch you arcade app with fullscreen=True flag:

window = arcade.Window(fullscreen=True)

Detailed example here.

Option 2. Get display size

Use get_display_size function to get screen resolution:

width, height = arcade.window_commands.get_display_size()
Alderven
  • 7,569
  • 5
  • 26
  • 38