all repos — Legends-RPG @ adcb4e5b63401d7a453cda039c1d39f6448070a4

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
31PINK = 208, 32, 144
32
33
34MAIN_FONT = 'DroidSans'
35
36
37#BATTLE STATES
38
39SELECT_ACTION = 'select action'
40SELECT_ENEMY = 'select enemy'
41ENEMY_ATTACK = 'enemy attack'
42SWITCH_ENEMY = 'switch enemy'
43PLAYER_ATTACK = 'player attack'
44SELECT_ITEM = 'select item'
45SELECT_MAGIC = 'select magic'
46RUN_AWAY = 'run away'
47ATTACK_ANIMATION = 'attack animation'
48BATTLE_WON = 'battle won'
49ENEMY_HIT = 'enemy hit'
50ENEMY_DEAD = 'enemy dead'
51PLAYER_FINISHED_ATTACK = 'player finished attack'
52ENEMY_ATTACK_DAMAGE = 'enemy attack damage'
53DISPLAY_ENEMY_ATTACK_DAMAGE = 'display enemy attack damage'
54DRINK_HEALING_POTION = 'drink healing potion'
55DRINK_ETHER_POTION = 'drink ether potion'
56CURE_SPELL = 'cure spell'
57FIRE_SPELL = 'fire spell'
58VICTORY_DANCE = 'victory dance'
59KNOCK_BACK = 'knock back'
60FLEE = 'flee'
61FADE_DEATH = 'fade death'
62
63#EVENTS
64
65END_BATTLE = 'end battle'
66
67
68
69