Browse Source

Delete move_hw_text.py

PythonCoder8 4 years ago
parent
commit
61da08204d
1 changed files with 0 additions and 33 deletions
  1. 0 33
      move_hw_text.py

+ 0 - 33
move_hw_text.py

@@ -1,33 +0,0 @@
-import pygame, sys
-
-#Initialize pygame and set up window
-pygame.init()
-winSize = (800, 600)
-screen = pygame.display.set_mode(winSize)
-
-#Load font and render text
-myriadProFont = pygame.font.SysFont('Myriad Pro', 48)
-helloWorld = myriadProFont.render('Hello World!', 1, (255, 0, 255), (255, 255, 255))
-
-#Create x and y coordinate variables for displaying text on screen
-x, y = 0, 0
-
-#Add clock so that the next frame is displayed at an exact time
-clock = pygame.time.Clock()
-
-while 1:
-
-    clock.tick(40)
-
-    #Keep screen open and let user exit window using for loop
-    for ev in pygame.event.get():
-        if ev.type == pygame.QUIT:
-            sys.exit()
-    
-    screen.fill((0,0,0))
-
-    screen.blit(helloWorld, (x, y))
-
-    x += 6
-
-    pygame.display.update()