Spaces:
Runtime error
Runtime error
File size: 707 Bytes
c82eb8a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
import pygame
import sys
import asyncio
pygame.init()
clock = pygame.time.Clock()
screen = pygame.display.set_mode([600, 500])
base_font = pygame.font.Font(None, 32)
async def main():
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
sys.exit()
if event.type == pygame.MOUSEBUTTONDOWN:
# Insert code here
if event.type == pygame.KEYDOWN:
# Insert code here
# Insert code here
pygame.display.flip()
clock.tick(60)
await asyncio.sleep(0)
asyncio.run(main())
|