Gebruik de richtingstoetsen om de tekst te verplaatsen.
import time from kandinsky import * from ion import * def draw_numworks(): bool=True x,y=120,100 while bool: draw_string("NumWorks",x,y) if keydown(KEY_LEFT): x-=1 if x<0: fill_rect(0,0,320,240,(255,255,255)) x=x%320 elif keydown(KEY_RIGHT): x+=1 x=x%320 #fill_rect(0,0,320,240,(255,255,255)) elif keydown(KEY_UP): y-=1 if y<0: fill_rect(0,0,320,240,(255,255,255)) y=y%240 elif keydown(KEY_DOWN): y+=1 y=y%240 #fill_rect(0,0,320,240,(255,255,255)) elif keydown(KEY_BACK): bool=False time.sleep(0.005) draw_numworks()