Added a text to demonstrate interaction with other objects.
This commit is contained in:
parent
871fb02521
commit
ec187aeacb
1 changed files with 2 additions and 0 deletions
|
@ -119,6 +119,8 @@ class FallingSand:
|
||||||
self.mouse_pos = self.mouse.get_pos()
|
self.mouse_pos = self.mouse.get_pos()
|
||||||
self.sand_surface = pygame.Surface(self.settings.window_size)
|
self.sand_surface = pygame.Surface(self.settings.window_size)
|
||||||
self.sand_surface.fill(self.gray)
|
self.sand_surface.fill(self.gray)
|
||||||
|
self.text = pygame.font.Font(pygame.font.get_default_font(), 32).render("Hallo, das ist Sand!!!", True, "white")
|
||||||
|
self.sand_surface.blit(self.text, (self.screen.get_width() // 2, self.screen.get_height() // 2))
|
||||||
self.matrix = pygame.PixelArray(self.sand_surface)
|
self.matrix = pygame.PixelArray(self.sand_surface)
|
||||||
|
|
||||||
# loading finished
|
# loading finished
|
||||||
|
|
Loading…
Reference in a new issue