W
W
Wayne2019-12-25 19:08:10
Python
Wayne, 2019-12-25 19:08:10

Why is the game not working?

Why doesn't the code work?

import pygame

pygame.init()
win = pygame.display.set_mode((500, 500))
pygame.display.set_caption("Game")

x = 50
y = 50
width = 50
height = 50
speed = 5

while True:
  print(1)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey, 2019-12-25
@anerev

Witcher 4?

T
tsarevfs, 2019-12-25
@tsarevfs

Start with the tutorial. https://riptutorial.com/en/pygame

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question