all repos — Legends-RPG @ 78f7dd5b0cc124cef7ca6aecee53f7cd7caf2486

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_DAMAGED = 'enemy damaged'
55ENEMY_DEAD = 'enemy dead'
56PLAYER_FINISHED_ATTACK = 'player finished attack'
57PLAYER_DAMAGED = 'enemy attack damage'
58DRINK_HEALING_POTION = 'drink healing potion'
59DRINK_ETHER_POTION = 'drink ether potion'
60CURE_SPELL = 'cure spell'
61FIRE_SPELL = 'fire spell'
62VICTORY_DANCE = 'victory dance'
63KNOCK_BACK = 'knock back'
64FLEE = 'flee'
65FADE_DEATH = 'fade death'
66SHOW_EXPERIENCE = 'show experience'
67LEVEL_UP = 'level up'
68
69#EVENTS
70
71END_BATTLE = 'end battle'
72
73
74
75