all repos — Legends-RPG @ edcd5c2abec6a2f46cf35d2023c924c837cce7ac

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)
29RED = (255, 0, 0)
30
31
32MAIN_FONT = 'DroidSans'
33
34
35#STATES
36
37SELECT_ACTION = 'select action'
38SELECT_ENEMY = 'select enemy'
39ENEMY_ATTACK = 'enemy attack'
40SWITCH_ENEMY = 'switch enemy'
41PLAYER_ATTACK = 'player attack'
42SELECT_ITEM = 'select item'
43SELECT_MAGIC = 'select magic'
44RUN_AWAY = 'run away'
45ATTACK_ANIMATION = 'attack animation'
46BATTLE_WON = 'battle won'
47ENEMY_HIT = 'enemy hit'
48ENEMY_DEAD = 'enemy dead'
49PLAYER_FINISHED_ATTACK = 'player finished attack'
50ENEMY_ATTACK_DAMAGE = 'enemy attack damage'
51DISPLAY_ENEMY_ATTACK_DAMAGE = 'display enemy attack damage'
52
53#EVENTS
54
55END_BATTLE = 'end battle'
56
57
58
59