all repos — Legends-RPG @ 9ee373a472b1ac434cf268cdcf3875ada4c57b29

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
13GAME = 'BEGIN GAME'
14
15ORIGINAL_CAPTION = 'The Stolen Crown'
16
17os.environ['SDL_VIDEO_CENTERED'] = '1'
18pg.init()
19pg.event.set_allowed([pg.KEYDOWN, pg.KEYUP, pg.QUIT])
20pg.display.set_caption(ORIGINAL_CAPTION)
21SCREEN = pg.display.set_mode((800, 608))
22SCREEN_RECT = SCREEN.get_rect()
23
24FONTS = tools.load_all_fonts(os.path.join('resources', 'fonts'))
25MUSIC = tools.load_all_music(os.path.join('resources', 'music'))
26GFX = tools.load_all_gfx(os.path.join('resources', 'graphics'))
27SFX = tools.load_all_sfx(os.path.join('resources', 'sound'))
28
29FONT = pg.font.Font(FONTS['Fixedsys500c'], 20)
30
31
32