Activities/Develop: Difference between revisions

Tonyforster (talk | contribs)
Tonyforster (talk | contribs)
Line 111: Line 111:
*44 pantalla.blit(texto, ((x / 2) - (x / 10), (y / 2) - (y / 10))) #the location on the screen
*44 pantalla.blit(texto, ((x / 2) - (x / 10), (y / 2) - (y / 10))) #the location on the screen


Read the documentation at pygame.org, there are lots of exciting things to try.
Read the documentation at pygame.org, there are lots of exciting things to try. For example, change line 44 to:
 
  pantalla.blit(texto, pygame.mouse.get_pos())
 
the text will follow the mouse.


===Going further===
===Going further===