all repos — Legends-RPG @ 468b0801c22e6e19227024b6258b56aadd4d3da3

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