Answer the question
In order to leave comments, you need to log in
Possibility of updating?
from time import sleep,time
BUB_CHANCE=10
#MAIN GAME LOOP
while True:
if randint(1,BUB_CHANCE)==1:
create_bubble()
move_bubbles()
window.update()-обновляет окно,чтобы перерисовать пузыри в новых позициях.
sleep(0.05)
Answer the question
In order to leave comments, you need to log in
The question was asked incorrectly. window - what is it? from which library? custom class?
In general, you need to look at the window.update() code to understand what it does.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question