Added models for fruits
This commit is contained in:
15
main.py
15
main.py
@@ -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
|
||||
|
||||
BIN
models/fruit_1_1_scaled_2.png
Normal file
BIN
models/fruit_1_1_scaled_2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
Reference in New Issue
Block a user