all repos — Legends-RPG @ 6631839e2ae03b23f4881a7a0de242c63c8dd613

A fantasy mini-RPG built with Python and Pygame.

data/constants.py (view raw)

 1"""Constants used throughout the game"""
 2
 3SCREEN_SIZE = (800, 608)
 4
 5##GAME STATES"""
 6
 7TOWN = 'town'
 8MAIN_MENU = 'main menu'
 9CASTLE = 'castle'
10INN = 'Inn'
11POTION_SHOP = 'potion shop'
12ARMOR_SHOP = 'armor shop'
13WEAPON_SHOP = 'weapon shop'
14MAGIC_SHOP = 'magic shop'
15HOUSE = 'house'
16OVERWORLD = 'overworld'
17BROTHER_HOUSE = 'brother_house'
18BATTLE = 'battle'
19
20##Colors
21
22BLACK = (0, 0, 0)
23NEAR_BLACK = (1, 0, 0)
24WHITE = (255, 255, 255)
25BLACK_BLUE = (19, 15, 48)
26NEAR_BLACK_BLUE = (20, 15, 48)
27LIGHT_BLUE = (0, 153, 204)
28DARK_RED = (118, 27, 12)
29
30
31MAIN_FONT = 'DroidSans'
32
33
34#STATES
35
36SELECT_ACTION = 'select action'
37SELECT_ENEMY = 'select enemy'
38ENEMY_ATTACK = 'enemy attack'
39SWITCH_ENEMY = 'switch enemy'
40PLAYER_ATTACK = 'player attack'
41SELECT_ITEM = 'select item'
42SELECT_MAGIC = 'select magic'
43RUN_AWAY = 'run away'
44ATTACK_ANIMATION = 'attack animation'
45BATTLE_WON = 'battle won'
46ENEMY_HIT = 'enemy hit'
47ENEMY_DEAD = 'enemy dead'
48PLAYER_FINISHED_ATTACK = 'player finished attack'
49ENEMY_ATTACK_DAMAGE = 'enemy attack damage'
50DISPLAY_ENEMY_ATTACK_DAMAGE = 'display enemy attack damage'
51
52#EVENTS
53
54END_BATTLE = 'end battle'
55
56
57
58