#2 Næste

Open
opened 1 year ago by Rhodez-x · 2 comments
Rhodez-x commented 1 year ago

pygame.font.init()
my_font = pygame.font.SysFont('Comic Sans MS', 30)
text_surface = my_font.render('Clicks: ' + str(clicks), False, (255, 255, 255))

DISPLAYSURF.blit(text_surface, (0,0))

pygame.font.init() my_font = pygame.font.SysFont('Comic Sans MS', 30) text_surface = my_font.render('Clicks: ' + str(clicks), False, (255, 255, 255)) DISPLAYSURF.blit(text_surface, (0,0))
Rhodez-x commented 1 year ago
Owner
There is no content yet.
Rhodez-x commented 1 year ago
Owner
    if explosion_on == 1:
        DISPLAYSURF.blit(explosion_frames[explosion_frames_nr], (200,200))
        explosion_frames_nr = (explosion_frames_nr +1)
        if explosion_frames_nr == 64:
            explosion_on = 0
            explosion_frames_nr = 0
``` if explosion_on == 1: DISPLAYSURF.blit(explosion_frames[explosion_frames_nr], (200,200)) explosion_frames_nr = (explosion_frames_nr +1) if explosion_frames_nr == 64: explosion_on = 0 explosion_frames_nr = 0 ```
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.