Advertisement
RedstoneHair

PGE tutorial 02

Dec 15th, 2020
663
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | None | 0 0
  1. import pygameextra as pe
  2. pe.init()
  3. pe.display.make((500, 500), "Episode 2", 1)
  4. while True:
  5.     for pe.event.c in pe.event.get():
  6.         pe.event.quitcheckauto()
  7.         #
  8.     pe.fill.full(pe.color.white)
  9.  
  10.     size = pe.display.get.size()
  11.    
  12.     #pe.draw.line(pe.color.black, (0, 0), size, 15)
  13.     #pe.draw.rect(pe.color.red, (50, 50, 100, 100), 5)
  14.     #pe.draw.circle(pe.color.aqua, pe.math.center(0, 0, size[0], size[1]), 15, 5)
  15.     pe.draw.ellipse(pe.color.yellow, (-50, -50, 100, 100))
  16.  
  17.     pe.display.update()
  18.     pe.time.tick(100)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement