all repos — Legends-RPG @ 2ada8efcd445f4fdc94020fcb7f03a34dca285af

A fantasy mini-RPG built with Python and Pygame.

data/setup.py (view raw)

 1__author__ = 'justinarmstrong'
 2
 3"""
 4This module initializes the display and
 5creates dictionaries of resources.
 6"""
 7
 8import os
 9import pygame as pg
10from . import tools
11from . import constants as c
12
13ORIGINAL_CAPTION = 'The Lost Crown'
14
15os.environ['SDL_VIDEO_CENTERED'] = '1'
16pg.init()
17pg.event.set_allowed([pg.KEYDOWN, pg.KEYUP, pg.QUIT])
18pg.display.set_caption(ORIGINAL_CAPTION)
19SCREEN = pg.display.set_mode((800, 600))
20SCREEN_RECT = SCREEN.get_rect()
21
22FONTS = tools.load_all_fonts(os.path.join('resources', 'fonts'))
23MUSIC = tools.load_all_music(os.path.join('resources', 'music'))
24GFX = tools.load_all_gfx(os.path.join('resources', 'graphics'))
25SFX = tools.load_all_sfx(os.path.join('resources', 'sound'))