FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
-python/data/setup.py at master · TobyfoxpurePython/-python · GitHub
TobyfoxpurePython
-python
Repository navigation
Code
Issues
1
(1)
Pull requests
2
(2)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
-python
/
data
/
setup.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
28 lines (19 loc) · 716 Bytes
Breadcrumbs
-python
/
data
/
setup.py
Copy path
File metadata and controls
28 lines (19 loc) · 716 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
__author__
=
'justinarmstrong'
"""
This module initializes the display and creates dictionaries of resources.
"""
import
os
import
pygame
as
pg
from
.
import
tools
from
.
import
constants
as
c
ORIGINAL_CAPTION
=
c
.
ORIGINAL_CAPTION
os
.
environ
[
'SDL_VIDEO_CENTERED'
]
=
'1'
pg
.
init
()
pg
.
event
.
set_allowed
([
pg
.
KEYDOWN
,
pg
.
KEYUP
,
pg
.
QUIT
])
pg
.
display
.
set_caption
(
c
.
ORIGINAL_CAPTION
)
SCREEN
=
pg
.
display
.
set_mode
(
c
.
SCREEN_SIZE
)
SCREEN_RECT
=
SCREEN
.
get_rect
()
FONTS
=
tools
.
load_all_fonts
(
os
.
path
.
join
(
"resources"
,
"fonts"
))
MUSIC
=
tools
.
load_all_music
(
os
.
path
.
join
(
"resources"
,
"music"
))
GFX
=
tools
.
load_all_gfx
(
os
.
path
.
join
(
"resources"
,
"graphics"
))
SFX
=
tools
.
load_all_sfx
(
os
.
path
.
join
(
"resources"
,
"sound"
))
Back
|
FazBrowse Home
|
New Git URL