forked from Bak-Chang/T-rex_game
-
Notifications
You must be signed in to change notification settings - Fork 5
/
cfg.py
51 lines (48 loc) · 2.16 KB
/
cfg.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# 설정파일
import os
# 화면크기
SCREENSIZE = (600, 150)
# FPS(속도)
FPS = 60
# 오디오 파일 위치
AUDIO_PATHS = {
'die': os.path.join(os.getcwd(), 'resources/audios/die.wav'),
'eaten': os.path.join(os.getcwd(), 'resources/audios/eating.wav'),
'jump': os.path.join(os.getcwd(), 'resources/audios/jump.wav'),
'point': os.path.join(os.getcwd(), 'resources/audios/point.wav'),
'bgm': os.path.join(os.getcwd(), 'resources/audios/bgm.mp3'),
'bgm_level2': os.path.join(os.getcwd(), 'resources/audios/bgm_level2.mp3'),
'bgm_level3': os.path.join(os.getcwd(), 'resources/audios/bgm_level3.mp3'),
'bgm_level4': os.path.join(os.getcwd(), 'resources/audios/bgm_level4.mp3'),
'bgm_level5': os.path.join(os.getcwd(), 'resources/audios/bgm_level5.mp3'),
'bgm_level6': os.path.join(os.getcwd(), 'resources/audios/bgm_level6.mp3')
}
# 그림 파일 위치
IMAGE_PATHS = {
'apple': os.path.join(os.getcwd(), 'resources/images/apple.png'),
'cacti': [
os.path.join(os.getcwd(), 'resources/images/cacti-big.png'),
os.path.join(os.getcwd(), 'resources/images/cacti-small.png')
],
'cloud': os.path.join(os.getcwd(), 'resources/images/cloud.png'),
'dino': [
os.path.join(os.getcwd(), 'resources/images/dino.png'),
os.path.join(os.getcwd(), 'resources/images/dino_ducking.png')
],
'dino_2': [
os.path.join(os.getcwd(), 'resources/images/dino_2.png'),
os.path.join(os.getcwd(), 'resources/images/dino_ducking_2.png')
],
'sun': os.path.join(os.getcwd(), 'resources/images/sun1.png'),
'moon': os.path.join(os.getcwd(), 'resources/images/moon1.png'),
'gameover': os.path.join(os.getcwd(), 'resources/images/gameover.png'),
'ground': os.path.join(os.getcwd(), 'resources/images/ground.png'),
'numbers': os.path.join(os.getcwd(), 'resources/images/numbers.png'),
'ptera': os.path.join(os.getcwd(), 'resources/images/ptera.png'),
'replay': os.path.join(os.getcwd(), 'resources/images/replay.png')
}
# 배경색상
BACKGROUND_COLOR = (153, 255, 255)
BACKGROUND_COLOR2 = (0, 51, 102)
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)