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 04:49, 28 March 2014
1 byte removed
,
04:49, 28 March 2014
→Sugargame
Line 106:
Line 106:
Look at the file game.py, there are a number of simple changes you can make:
Look at the file game.py, there are a number of simple changes you can make:
−
*
9 BLANCO =(255, 255, 255) #this sets the red, green and blue values for the white text
+
9 BLANCO =(255, 255, 255) #this sets the red, green and blue values for the white text
−
*
10 NEGRO = (0, 0, 0) #this sets the R G B of the black background
+
10 NEGRO = (0, 0, 0) #this sets the R G B of the black background
−
*
24 fuente = pygame.font.SysFont(None, 48) #48 is the text size
+
24 fuente = pygame.font.SysFont(None, 48) #48 is the text size
−
*
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. For example, change line 44 to:
Read the documentation at pygame.org, there are lots of exciting things to try. For example, change line 44 to:
Tonyforster
2,486
edits