import pygame,sys
#it was made by IT NOW
screen = pygame.display.set_mode((640,640))
clock = pygame.time.Clock()
rect = pygame.Rect(0,0,64,64)
while True:
for events in pygame.event.get():
if events.type == pygame.QUIT:
pygame.quit()
sys.exit()
screen.fill((60,60,60))
#code here
mouse_pos = pygame.mouse.get_pos()
mouse_vec = pygame.math.Vector2(mouse_pos[0],mouse_pos[1])
rect.x = int(mouse_vec.x/64)*64
rect.y = int(mouse_vec.y/64)*64
pygame.draw.rect(screen,(255,255,255),rect)
##
pygame.display.update()
clock.tick(60)
#you can subscribe my youtube channel and follow me
#you can vote my code(plz vote good my code)