all repos — Legends-RPG @ 8a2cd71823b2d268cca5ad5b0a908c0474c17d52

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'
19DUNGEON = 'dungeon'
20DUNGEON2 = 'dungeon2'
21DUNGEON3 = 'dungeon3'
22DUNGEON4 = 'dungeon4'
23DUNGEON5 = 'dungeon5'
24
25##Colors
26
27BLACK = 0, 0, 0
28NEAR_BLACK = 1, 0, 0
29WHITE = 255, 255, 255
30BLACK_BLUE = 19, 15, 48
31NEAR_BLACK_BLUE = 20, 15, 48
32LIGHT_BLUE = 0, 153, 204
33DARK_RED = 118, 27, 12
34RED = 255, 0, 0
35GREEN = 0, 255, 0
36PINK = 208, 32, 144
37
38
39MAIN_FONT = 'DroidSans'
40
41
42#BATTLE STATES
43
44SELECT_ACTION = 'select action'
45SELECT_ENEMY = 'select enemy'
46ENEMY_ATTACK = 'enemy attack'
47SWITCH_ENEMY = 'switch enemy'
48PLAYER_ATTACK = 'player attack'
49SELECT_ITEM = 'select item'
50SELECT_MAGIC = 'select magic'
51RUN_AWAY = 'run away'
52ATTACK_ANIMATION = 'attack animation'
53BATTLE_WON = 'battle won'
54ENEMY_HIT = 'enemy hit'
55ENEMY_DEAD = 'enemy dead'
56PLAYER_FINISHED_ATTACK = 'player finished attack'
57ENEMY_ATTACK_DAMAGE = 'enemy attack damage'
58DISPLAY_ENEMY_ATTACK_DAMAGE = 'display enemy attack damage'
59DRINK_HEALING_POTION = 'drink healing potion'
60DRINK_ETHER_POTION = 'drink ether potion'
61CURE_SPELL = 'cure spell'
62FIRE_SPELL = 'fire spell'
63VICTORY_DANCE = 'victory dance'
64KNOCK_BACK = 'knock back'
65FLEE = 'flee'
66FADE_DEATH = 'fade death'
67
68#EVENTS
69
70END_BATTLE = 'end battle'
71
72
73
74