-
Notifications
You must be signed in to change notification settings - Fork 1
Minigame with a canvas loop
Black Ram edited this page Jun 26, 2023
·
4 revisions
BUG: blinking in RenpyGameByTimerForDraw in development
pygame.RenpyGameByTimerForDraw
is a simplified implementation of pygame.RenpyGameByTimer
that allows you to use the pygame.draw functions without having major flashing.
minigame = pygame.RenpyGameByTimerForDraw(
update_process=snake_logic,
event_lambda=game_event,
delay=0.7,
)
The pygame.RenpyGameByTimerForDraw
is similar to pygame.RenpyGameByTimer
with exception of is_full_redraw_lamda
parameter, that is ignored and not have a first_step
parameter. So you must see the documentation of pygame.RenpyGameByTimer
for more information.