-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcfg.py
More file actions
30 lines (20 loc) · 1016 Bytes
/
cfg.py
File metadata and controls
30 lines (20 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import os
FPS = 100
SCREENSIZE = (640, 480)
Imagees = {
'rabbit': os.path.join(os.getcwd(), 'resources/images/dude.png'),
'grass': os.path.join(os.getcwd(), 'resources/images/grass.png'),
'castle': os.path.join(os.getcwd(), 'resources/images/castle.png'),
'arrow': os.path.join(os.getcwd(), 'resources/images/bullet.png'),
'badguy': os.path.join(os.getcwd(), 'resources/images/badguy.png'),
'healthbar': os.path.join(os.getcwd(), 'resources/images/healthbar.png'),
'health': os.path.join(os.getcwd(), 'resources/images/health.png'),
'gameover': os.path.join(os.getcwd(), 'resources/images/gameover.png'),
'youwin': os.path.join(os.getcwd(), 'resources/images/youwin.png')
}
Sounds = {
'hit': os.path.join(os.getcwd(), 'resources/audio/explode.wav'),
'enemy': os.path.join(os.getcwd(), 'resources/audio/enemy.wav'),
'shoot': os.path.join(os.getcwd(), 'resources/audio/shoot.wav'),
'moonlight': os.path.join(os.getcwd(), 'resources/audio/moonlight.wav')
}