all repos — Legends-RPG @ 5bfef920882a049cc06fa2648364428c4e0f1507

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'
25DEATH_SCENE = 'death scene'
26
27##Colors
28
29BLACK = 0, 0, 0
30NEAR_BLACK = 1, 0, 0
31WHITE = 255, 255, 255
32BLACK_BLUE = 19, 15, 48
33NEAR_BLACK_BLUE = 20, 15, 48
34LIGHT_BLUE = 0, 153, 204
35DARK_RED = 118, 27, 12
36REALLY_DARK_RED = 15, 0, 0
37RED = 255, 0, 0
38GREEN = 0, 255, 0
39PINK = 208, 32, 144
40TRANSITION_COLOR = BLACK_BLUE
41
42MAIN_FONT = 'DroidSans'
43
44#BATTLE STATES
45
46SELECT_ACTION = 'select action'
47SELECT_ENEMY = 'select enemy'
48ENEMY_ATTACK = 'enemy attack'
49SWITCH_ENEMY = 'switch enemy'
50PLAYER_ATTACK = 'player attack'
51SELECT_ITEM = 'select item'
52SELECT_MAGIC = 'select magic'
53RUN_AWAY = 'run_away'
54ATTACK_ANIMATION = 'attack animation'
55BATTLE_WON = 'battle won'
56ENEMY_DAMAGED = 'enemy damaged'
57ENEMY_DEAD = 'enemy dead'
58PLAYER_FINISHED_ATTACK = 'player finished attack'
59PLAYER_DAMAGED = 'enemy attack damage'
60DRINK_HEALING_POTION = 'drink healing potion'
61DRINK_ETHER_POTION = 'drink ether potion'
62CURE_SPELL = 'cure spell'
63FIRE_SPELL = 'fire spell'
64VICTORY_DANCE = 'victory dance'
65KNOCK_BACK = 'knock back'
66FLEE = 'flee'
67FADE_DEATH = 'fade death'
68SHOW_EXPERIENCE = 'show experience'
69LEVEL_UP = 'level up'
70TWO_ACTIONS = 'two actions'
71SHOW_GOLD = 'show gold'
72DEATH_FADE = 'death fade'
73
74#EVENTS
75
76END_BATTLE = 'end battle'
77
78#SOUND EFFECTS
79
80CLICK = 'click'
81CLICK2 = 'click2'
82CLOTH_BELT = 'cloth_belt'
83SWORD = 'sword'
84FIRE = 'fire'
85PUNCH = 'punch'
86POWERUP = 'powerup'
87TALK = 'talk'
88
89TRANSITION_SPEED = 35 
90DEATH_TRANSITION_SPEED = 5
91
92#LEVEL STATES
93
94NORMAL = 'normal'
95TRANSITION_IN = 'transition in'
96TRANSITION_OUT = 'transition out'