Added models for fruits

This commit is contained in:
Christian Bobe
2024-07-13 13:22:48 +02:00
parent 412bcf3374
commit 827cd114af
2 changed files with 12 additions and 3 deletions

15
main.py
View File

@@ -1,11 +1,14 @@
import pygame
import subprocess
import random
pygame.init()
MAINSCREEN_SIZE = (1440,900)
MAINSCREEN = pygame.display.set_mode(MAINSCREEN_SIZE)
MAINSCREEN = pygame.display.set_mode(MAINSCREEN_SIZE, pygame.RESIZABLE)
#MAINSCREEN = pygame.display.set_mode(MAINSCREEN_SIZE, pygame.FULLSCREEN)
CENTER_X = MAINSCREEN_SIZE[0]/2
CENTER_Y = MAINSCREEN_SIZE[1]/2
@@ -45,6 +48,13 @@ pacman_animation.append(pygame.image.load("models/pacman_1_3.png"))
pacman_animation.append(pygame.image.load("models/pacman_1_4.png"))
pacman_animation.append(pygame.image.load("models/pacman_1_5.png"))
#ITEMS
fruits = list()
fruits.append(pygame.image.load("models/fruit_1_1_scaled_2.png"))
fruits_size = fruits[0].get_size()
#TODO Pacman Animation has to been added
@@ -141,8 +151,7 @@ while(gamestate==True):
#print(pacman_animation)
MAINSCREEN.blit(pacman_animation[count], (pacman_posx,pacman_posy))
print(count2)
count += 1
if count == 5: count = 0

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB