So, I'm trying to experiment with Pygame and have a simple program to render a cube at an X and Y position (currently 0,0). However, no matter where I choose to render this object, it will not render whatsoever.
Quite simply, I have this program:
import pygame
import sys
pygame.init
size = width, height = 840,840
black = (0,0,0)
blue=(0,0,255)
white = (250,250,250)
x = 0
y = 0
dis = pygame.display.set_mode(size)
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT: sys.exit()
pygame.draw.rect(dis,blue,[x,y,10,10])
pygame.display.update
and it should render a rectangle at 0,0. However, it does not render an object at all, and I have checked everything tons of times. No errors, it just doesn't render a cube.