Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Activities/Develop
(view source)
Revision as of 03:16, 28 March 2014
113 bytes added
,
03:16, 28 March 2014
→Sugargame
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===
Tonyforster
2,486
edits