all repos — Legends-RPG @ 3f30da44bb69bd438432750872fdd354c4f07ee3

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 = 'brotherhouse'
18BATTLE = 'battle'
19DUNGEON = 'dungeon'
20DUNGEON2 = 'dungeon2'
21DUNGEON3 = 'dungeon3'
22DUNGEON4 = 'dungeon4'
23DUNGEON5 = 'dungeon5'
24INSTRUCTIONS = 'instructions'
25
26##Colors
27
28BLACK = 0, 0, 0
29NEAR_BLACK = 1, 0, 0
30WHITE = 255, 255, 255
31BLACK_BLUE = 19, 15, 48
32NEAR_BLACK_BLUE = 20, 15, 48
33LIGHT_BLUE = 0, 153, 204
34DARK_RED = 118, 27, 12
35REALLY_DARK_RED = 15, 0, 0
36RED = 255, 0, 0
37GREEN = 0, 255, 0
38PINK = 208, 32, 144
39TRANSITION_COLOR = BLACK_BLUE
40
41MAIN_FONT = 'DroidSans'
42
43#BATTLE STATES
44
45SELECT_ACTION = 'select action'
46SELECT_ENEMY = 'select enemy'
47ENEMY_ATTACK = 'enemy attack'
48SWITCH_ENEMY = 'switch enemy'
49PLAYER_ATTACK = 'player attack'
50SELECT_ITEM = 'select item'
51SELECT_MAGIC = 'select magic'
52RUN_AWAY = 'run_away'
53ATTACK_ANIMATION = 'attack animation'
54BATTLE_WON = 'battle won'
55ENEMY_DAMAGED = 'enemy damaged'
56ENEMY_DEAD = 'enemy dead'
57PLAYER_FINISHED_ATTACK = 'player finished attack'
58PLAYER_DAMAGED = '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'
67SHOW_EXPERIENCE = 'show experience'
68LEVEL_UP = 'level up'
69TWO_ACTIONS = 'two actions'
70SHOW_GOLD = 'show gold'
71
72#EVENTS
73
74END_BATTLE = 'end battle'
75
76#SOUND EFFECTS
77
78CLICK = 'click'
79CLICK2 = 'click2'
80CLOTH_BELT = 'cloth_belt'
81SWORD = 'sword'
82FIRE = 'fire'
83PUNCH = 'punch'
84POWERUP = 'powerup'
85TALK = 'talk'
86
87TRANSITION_SPEED = 35 
88
89#LEVEL STATES
90
91NORMAL = 'normal'
92TRANSITION_IN = 'transition in'
93TRANSITION_OUT = 'transition out'