- Joined
- Jan 20, 2021
- Messages
- 1
- Reaction score
- 0
import pygame
import os
WIDTH, HEIGHT = 900, 500
WIN = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption("Aberoth")
Black = (150, 150, 150)
White = (255, 255, 255)
FPS = 100
clock = pygame.time.Clock()
CircleX = 100
CircleX = 10 + CircleX
CircleY = 200
circle_img = pygame.image.load(os.path.join('games', 'circle.png'))
def circle(x, y):
WIN.blit(circle_img, (x, y))
def draw_window():
WIN.fill(White)
circle(CircleX, CircleY)
pygame.display.update()
def main():
clock.tick(FPS)
run = True
while run:
for event in pygame.event.get():
if event.type == pygame.QUIT:
run = False
draw_window()
pygame.quit()
quit()
if __name__ == "__main__":
main()
import os
WIDTH, HEIGHT = 900, 500
WIN = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption("Aberoth")
Black = (150, 150, 150)
White = (255, 255, 255)
FPS = 100
clock = pygame.time.Clock()
CircleX = 100
CircleX = 10 + CircleX
CircleY = 200
circle_img = pygame.image.load(os.path.join('games', 'circle.png'))
def circle(x, y):
WIN.blit(circle_img, (x, y))
def draw_window():
WIN.fill(White)
circle(CircleX, CircleY)
pygame.display.update()
def main():
clock.tick(FPS)
run = True
while run:
for event in pygame.event.get():
if event.type == pygame.QUIT:
run = False
draw_window()
pygame.quit()
quit()
if __name__ == "__main__":
main()