Skip to content

Commit cdc3a16

Browse files
authored
Add files via upload
1 parent 3564fbd commit cdc3a16

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

MAINGAME.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
pygame.init()
1111

12+
FULL_SCREEN_WIDTH = 1080
13+
FULL_SCREEN_HEIGHT = 1920
1214
SCREEN_WIDTH = 1080
1315
SCREEN_HEIGHT = int(SCREEN_WIDTH * 0.8)
1416
programIcon = pygame.image.load('img/favicon.png')
@@ -507,12 +509,12 @@ def update(self):
507509
self.rect.x += screen_scroll
508510
if pygame.sprite.collide_rect(self, player):
509511
if self.item_type == 'Health':
510-
player.health += 25
512+
player.health += 20
511513
PICKHEALTH.play()
512514
if player.health > player.max_health:
513515
player.health = player.max_health
514516
elif self.item_type == 'Ammo':
515-
player.ammo += 5
517+
player.ammo += 3
516518
RELOAD.play()
517519
elif self.item_type == 'Grenade':
518520
player.grenades += 1
@@ -541,7 +543,7 @@ def draw(self, health):
541543
draw_text('FPS', font, WHITE, 1000, 5)
542544
screen.blit(update_ms(), (70, 830))
543545
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)
545547

546548
class Bullet(pygame.sprite.Sprite):
547549
def __init__(self, x, y, direction):
@@ -826,7 +828,7 @@ def takescreenshot(screen):
826828
draw_text('EXIT', font, WHITE, 55, 810)
827829
screen.blit(ESCkey, (5, 795))
828830
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)
830832
# BTNS MENU
831833
if start_button.draw(screen):
832834
start_game = True
@@ -963,6 +965,8 @@ def takescreenshot(screen):
963965
pygame.mixer.music.unpause()
964966
MENUSELECT.play()
965967
if event.key == pygame.K_f:
968+
SCREEN_WIDTH = 1080
969+
SCREEN_HEIGHT = 1920
966970
pygame.display.set_mode((1920, 1080), pygame.FULLSCREEN)
967971
MENUSELECT.play()
968972
if event.key == pygame.K_F4:

__pycache__/MAINGAME.cpython-39.pyc

225 Bytes
Binary file not shown.

screenshots/ScreenshotFolder.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#########################################################
22
SCREENSHOTS
3-
#########################################################
3+
#########################################################

0 commit comments

Comments
 (0)