예제 #1
0
파일: main.py 프로젝트: Sanket009/Game
from lib import enemies, heroes, items
from grid import *
import random
from key_events import KeyEvents
import math

# INSTANCES OF GAME OBJECTS
PLAYER = heroes.LINK()
key_events = KeyEvents(PLAYER)
WAND = items.WAND()
GOLD = items.GOLD()
SWORD = items.SWORD()
SHIELD = items.SHIELD()
BOW = items.BOW()
GANON = enemies.GANON()
PORTAL = enemies.PORTAL()
TEMPLE = TEMPLE()
MIDNA = heroes.MIDNA()

# GROUPINGS OF RELATED GAME OBJECTS
GAME_ITEMS = [WAND, SWORD, SHIELD]
GAME_WEAPONS = [WAND, BOW]
BEAST_LIST = []
orbs_list = []

# OTHER CONFIGURATION
INVFONT = pygame.font.SysFont('FreeSansBold.ttf', 20)
HEALTHFONT = pygame.font.SysFont('FreeSansBold.ttf', 40)
portal_path = './textures/portal/portal_'
portal_images = [portal_path + str(p) + '.png' for p in range(1, 7)]
예제 #2
0
from lib import enemies, heroes, items
from grid import *
import random
from key_events import KeyEvents
import math

# INSTANCES OF GAME OBJECTS
PLAYER = heroes.PIKACHU()
key_events = KeyEvents(PLAYER)
WAND = items.WAND()
GOLD = items.GOLD()
SWORD = items.SWORD()
SHIELD = items.SHIELD()
BOW = items.BOW()
MEWTWO = enemies.MEWTWO()
PORTAL = enemies.PORTAL()
TEMPLE = TEMPLE()
CHANSEY = heroes.CHANSEY()

# GROUPINGS OF RELATED GAME OBJECTS
GAME_ITEMS = [WAND, SWORD, SHIELD]
GAME_WEAPONS = [WAND, BOW]
KOFFING_LIST = []
orbs_list = []

# OTHER CONFIG
INVFONT = pygame.font.SysFont('FreeSansBold.ttf', 20)
HEALTHFONT = pygame.font.SysFont('FreeSansBold.ttf', 40)
portal_path = './textures/portal/portal_'
portal_images = [portal_path + str(p) + '.png' for p in range(1, 7)]
"""