Home > OS >  Pygame Linux first window appear strange things
Pygame Linux first window appear strange things

Time:10-14


No pop-up window terminal is filled with this design doesn't shut off
This is what reason is docker for MAC
O great god answer

 import sys 
The import pygame

Def run_game () :
Pygame. The init ()
Screen=pygame. Display. Set_mode ((1200800))
Pygame. Display. Set_caption (" Alien night ")

While True:
For the event in pygame. Event. The get () :
If the event. The type==pygame. QUIT:
Sys. The exit ()
Pygame. Display. Flip ()

Run_game ()
  • Related