-
Notifications
You must be signed in to change notification settings - Fork 4
/
mainConst.py
18 lines (16 loc) · 1.41 KB
/
mainConst.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import pygame, os
from abs_path import abs_path
pygame.init()
width = 150
height = 150
action = {'satiety': 100, 'toilet': 100, 'happy': 100, 'health': 100, 'logiki': 50}
screen = pygame.display.set_mode((800, 500))
pixel_font = pygame.font.Font(abs_path('font/technicality1.ttf'), 27)
tamagotchiJump = [pygame.transform.scale(pygame.image.load(abs_path('images/sprites/tamagotchi animation/tamagotchi-0.png')), (width, height)),
pygame.transform.scale(pygame.image.load(abs_path('images/sprites/tamagotchi animation/tamagotchi-1.png')), (width, height)),
pygame.transform.scale(pygame.image.load(abs_path('images/sprites/tamagotchi animation/tamagotchi-2.png')), (width, height)),
pygame.transform.scale(pygame.image.load(abs_path('images/sprites/tamagotchi animation/tamagotchi-3.png')), (width, height)),
pygame.transform.scale(pygame.image.load(abs_path('images/sprites/tamagotchi animation/tamagotchi-4.png')), (width, height)),
pygame.transform.scale(pygame.image.load(abs_path('images/sprites/tamagotchi animation/tamagotchi-5.png')), (width, height)),
pygame.transform.scale(pygame.image.load(abs_path('images/sprites/tamagotchi animation/tamagotchi-6.png')), (width, height)),
pygame.transform.scale(pygame.image.load(abs_path('images/sprites/tamagotchi animation/tamagotchi-7.png')), (width, height))]