Advertisement
KodingKid

How to make a window for Python games

Apr 6th, 2021
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. SCREEN_WIDTH = 1280
  2. SCREEN_HEIGHT = 720
  3. #720p game window
  4. arcade.open_window(SCREEN_WIDTH, SCREEN_HEIGHT, "Drawing Example")
  5. #opens the window as an empty 720p screen
  6. arcade.set_background_color(arcade.color.WHITE)
  7. #makes the empty window have some color (white)
  8. arcade.start_render()
  9. #starts to render the window
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement