2022-05-11 17:32:28 +02:00
|
|
|
import os
|
|
|
|
import pygame
|
|
|
|
|
2022-04-18 23:28:28 +02:00
|
|
|
FPS = 20
|
2022-03-22 13:46:29 +01:00
|
|
|
#
|
2022-03-22 13:45:54 +01:00
|
|
|
# SZEROKOSC_OKNA = 1500
|
|
|
|
# WYSOKOSC_OKNA = 750
|
2022-03-22 14:32:26 +01:00
|
|
|
#
|
2022-04-18 23:28:28 +02:00
|
|
|
LICZBA_POL_W_POZIOMIE = 30
|
|
|
|
LICZBA_POL_W_PIONIE = 15
|
2022-04-04 16:28:25 +02:00
|
|
|
BOK_POLA = 45
|
2022-03-22 21:52:05 +01:00
|
|
|
ODSTEP_MIEDZY_POLAMI = 1
|
2022-03-22 13:45:54 +01:00
|
|
|
SZEROKOSC_OKNA = LICZBA_POL_W_POZIOMIE * (BOK_POLA + ODSTEP_MIEDZY_POLAMI) + ODSTEP_MIEDZY_POLAMI
|
|
|
|
WYSOKOSC_OKNA = LICZBA_POL_W_PIONIE * (BOK_POLA + ODSTEP_MIEDZY_POLAMI) + ODSTEP_MIEDZY_POLAMI
|
2022-03-22 14:32:26 +01:00
|
|
|
#
|
2022-04-04 16:28:25 +02:00
|
|
|
BOK_AGENTA1_W_POLACH = 1
|
2022-03-22 13:45:54 +01:00
|
|
|
BOK_AGENTA1 = BOK_AGENTA1_W_POLACH * (BOK_POLA + ODSTEP_MIEDZY_POLAMI) - ODSTEP_MIEDZY_POLAMI
|
2022-03-22 14:32:26 +01:00
|
|
|
#
|
2022-04-06 14:05:40 +02:00
|
|
|
DUZA_SZAFA = 1
|
2022-03-27 23:08:35 +02:00
|
|
|
#
|
2022-03-19 15:11:07 +01:00
|
|
|
BIALY = (255, 255, 255)
|
|
|
|
JASNOSZARY1 = (200, 200, 200)
|
2022-03-22 13:45:54 +01:00
|
|
|
SZARY1 = (150, 150, 150)
|
2022-03-19 15:11:07 +01:00
|
|
|
ZIELONY1 = (26, 122, 26)
|
2022-03-22 14:32:26 +01:00
|
|
|
CZARNY = (0, 0, 0)
|
2022-03-22 21:52:05 +01:00
|
|
|
CIEMNY_BRAZOWY1 = (60, 19, 33)
|
2022-04-18 23:28:28 +02:00
|
|
|
ZOLTY1 = (231, 213, 69)
|
|
|
|
NIEBIESKI1 = (65, 125, 225)
|
2022-05-11 17:32:28 +02:00
|
|
|
IKONA=pygame.transform.scale(pygame.image.load(os.path.join('Ikony', 'osoba2.png')),
|
|
|
|
(BOK_AGENTA1, BOK_AGENTA1))
|
2022-05-16 21:41:38 +02:00
|
|
|
KALUZA=pygame.transform.scale(pygame.image.load(os.path.join('Ikony', 'kaluza.png')),
|
|
|
|
(BOK_AGENTA1, BOK_AGENTA1))
|
|
|
|
DYWAN=pygame.transform.scale(pygame.image.load(os.path.join('Ikony', 'dywan.png')),
|
|
|
|
(BOK_AGENTA1, BOK_AGENTA1))
|
2022-03-22 14:32:26 +01:00
|
|
|
###
|
2022-03-22 13:45:54 +01:00
|
|
|
|
2022-03-22 14:32:26 +01:00
|
|
|
###
|
|
|
|
GREY = (150, 150, 150)
|
|
|
|
RED = (255, 0, 0)
|
|
|
|
BLUE = (55, 55, 255)
|
|
|
|
BLACK = (0, 0, 0)
|
|
|
|
GREEN = (0, 200, 0)
|
|
|
|
DARKGREY = (150, 150, 150)
|
|
|
|
UGLY_PINK = (255, 0, 255)
|
|
|
|
BROWN = (153, 76, 0)
|
|
|
|
GOLD = (153, 153, 0)
|
|
|
|
DARKGREEN = (0, 102, 0)
|
|
|
|
DARKORANGE = (255, 128, 0)
|
|
|
|
#
|
|
|
|
# NUMBER_OF_BLOCKS_WIDE=8
|
|
|
|
# NUMBER_OF_BLOCKS_HIGH=8
|
|
|
|
# BLOCK_HEIGHT=round(SZEROKOSC_OKNA/NUMBER_OF_BLOCKS_HIGH)
|
|
|
|
# BLOCK_WIDTH=round(WYSOKOSC_OKNA/NUMBER_OF_BLOCKS_WIDE)
|
|
|
|
#
|
|
|
|
MAPFILE = "map.txt"
|
|
|
|
TITLE = "Gierka"
|
|
|
|
#
|
|
|
|
NUMBER_OF_BLOCKS_WIDE = LICZBA_POL_W_POZIOMIE
|
|
|
|
NUMBER_OF_BLOCKS_HIGH = LICZBA_POL_W_PIONIE
|
|
|
|
BLOCK_HEIGHT = BOK_POLA
|
|
|
|
BLOCK_WIDTH = BOK_POLA
|