|
9 | 9 |
|
10 | 10 | pygame.init()
|
11 | 11 |
|
| 12 | +FULL_SCREEN_WIDTH = 1080 |
| 13 | +FULL_SCREEN_HEIGHT = 1920 |
12 | 14 | SCREEN_WIDTH = 1080
|
13 | 15 | SCREEN_HEIGHT = int(SCREEN_WIDTH * 0.8)
|
14 | 16 | programIcon = pygame.image.load('img/favicon.png')
|
@@ -507,12 +509,12 @@ def update(self):
|
507 | 509 | self.rect.x += screen_scroll
|
508 | 510 | if pygame.sprite.collide_rect(self, player):
|
509 | 511 | if self.item_type == 'Health':
|
510 |
| - player.health += 25 |
| 512 | + player.health += 20 |
511 | 513 | PICKHEALTH.play()
|
512 | 514 | if player.health > player.max_health:
|
513 | 515 | player.health = player.max_health
|
514 | 516 | elif self.item_type == 'Ammo':
|
515 |
| - player.ammo += 5 |
| 517 | + player.ammo += 3 |
516 | 518 | RELOAD.play()
|
517 | 519 | elif self.item_type == 'Grenade':
|
518 | 520 | player.grenades += 1
|
@@ -541,7 +543,7 @@ def draw(self, health):
|
541 | 543 | draw_text('FPS', font, WHITE, 1000, 5)
|
542 | 544 | screen.blit(update_ms(), (70, 830))
|
543 | 545 | draw_text('TIME', font, WHITE, 5, 825)
|
544 |
| - draw_text('Current build version V1.3 (release.15.09.2021)', ver, WHITE, 5, 853) |
| 546 | + draw_text('Current build version V1.31 (release.19.09.2021)', ver, WHITE, 5, 853) |
545 | 547 |
|
546 | 548 | class Bullet(pygame.sprite.Sprite):
|
547 | 549 | def __init__(self, x, y, direction):
|
@@ -826,7 +828,7 @@ def takescreenshot(screen):
|
826 | 828 | draw_text('EXIT', font, WHITE, 55, 810)
|
827 | 829 | screen.blit(ESCkey, (5, 795))
|
828 | 830 | draw_text('©2021 Jan Kupczyk', JanKupczyk, WHITE, 905, 845)
|
829 |
| - draw_text('Current build version V1.3 (release.15.09.2021)', ver, WHITE, 5, 853) |
| 831 | + draw_text('Current build version V1.31 (release.19.09.2021)', ver, WHITE, 5, 853) |
830 | 832 | # BTNS MENU
|
831 | 833 | if start_button.draw(screen):
|
832 | 834 | start_game = True
|
@@ -963,6 +965,8 @@ def takescreenshot(screen):
|
963 | 965 | pygame.mixer.music.unpause()
|
964 | 966 | MENUSELECT.play()
|
965 | 967 | if event.key == pygame.K_f:
|
| 968 | + SCREEN_WIDTH = 1080 |
| 969 | + SCREEN_HEIGHT = 1920 |
966 | 970 | pygame.display.set_mode((1920, 1080), pygame.FULLSCREEN)
|
967 | 971 | MENUSELECT.play()
|
968 | 972 | if event.key == pygame.K_F4:
|
|
0 commit comments