|
|
@ -26,6 +26,60 @@ def find_year():
|
|
|
|
now = datetime.datetime.now()
|
|
|
|
now = datetime.datetime.now()
|
|
|
|
return now.strftime('%Y')
|
|
|
|
return now.strftime('%Y')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def to_table(l, cols):
|
|
|
|
|
|
|
|
l.sort(key=str.lower)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Return it as one row here if the list is too small
|
|
|
|
|
|
|
|
if len(l) < cols:
|
|
|
|
|
|
|
|
return [l]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
newlist = []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Step over every row of the list
|
|
|
|
|
|
|
|
for i in range(0, len(l), cols):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Get the next row of the list
|
|
|
|
|
|
|
|
sublist = l[i : i + cols]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# If it's too short, add it to the end of the last row
|
|
|
|
|
|
|
|
if len(sublist) < cols:
|
|
|
|
|
|
|
|
newlist[-1] += sublist
|
|
|
|
|
|
|
|
# Add the next row in the list to the table
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
newlist += [sublist]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return newlist
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def his_to_table(l, cols):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
l.sort(key=str.lower)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Return it as one row here if the list is too small
|
|
|
|
|
|
|
|
if len(l) < cols:
|
|
|
|
|
|
|
|
return [l]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
newlist = []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Step over every row of the list
|
|
|
|
|
|
|
|
for i in range(0, len(l), cols):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Get the next row of the list
|
|
|
|
|
|
|
|
sublist = l[i : i + cols]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# If it's too short, add it to the end of the last row
|
|
|
|
|
|
|
|
if len(sublist) < cols:
|
|
|
|
|
|
|
|
newlist[-1] += sublist
|
|
|
|
|
|
|
|
# Add the next row in the list to the table
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
newlist += [sublist]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return newlist
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_gdd_topics(topics, cols):
|
|
|
|
|
|
|
|
return to_table(topics, int(len(topics) / cols))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def find_gallery(name):
|
|
|
|
def find_gallery(name):
|
|
|
|
gal = [name]
|
|
|
|
gal = [name]
|
|
|
|
if name == "Abbey":
|
|
|
|
if name == "Abbey":
|
|
|
@ -446,11 +500,13 @@ def entry(page):
|
|
|
|
TEMPLATE_PATH.insert(0, abs_views_path )
|
|
|
|
TEMPLATE_PATH.insert(0, abs_views_path )
|
|
|
|
return template(os.path.join(abs_views_path,'entry.tpl'), info)
|
|
|
|
return template(os.path.join(abs_views_path,'entry.tpl'), info)
|
|
|
|
|
|
|
|
|
|
|
|
# Blessfrey Game Design Document Page
|
|
|
|
# Blessfrey Game Design Document Page - change the 5 for more or less columns
|
|
|
|
@route('/blessfrey-gdd')
|
|
|
|
@route('/blessfrey-gdd')
|
|
|
|
def gddbf():
|
|
|
|
def gddbf():
|
|
|
|
"""Game Design Document"""
|
|
|
|
"""Game Design Document"""
|
|
|
|
info = {'css': 'doc', 'title': 'blessfrey gdd', 'year': find_year()}
|
|
|
|
info = {'css': 'doc', 'title': 'blessfrey gdd', 'year': find_year(), 'topics': get_gdd_topics(
|
|
|
|
|
|
|
|
["achievement", "ai", "armor-rating", "attack-loop", "attribute", "attribute-point", "cast", "character", "collision", "controls", "credits", "damage-type", "death-penalty", "design-philosophy", "dialogue", "docs", "environment-effect", "gear", "gig", "groups", "highlight", "ID", "inspect menu", "inventory", "item", "job", "keyword", "language", "life", "marketing", "mechanics", "Mercur", "milestones", "miracles", "pathfinding", "perk", "pip", "projectile", "proxemics", "punishment", "setting", "skill", "smartphone", "spirit", "status-effect", "story", "style guide", "terms", "vibe", "website", "xp", "xp-bar", "zone"],5
|
|
|
|
|
|
|
|
)}
|
|
|
|
return template('bf-gdd.tpl', info)
|
|
|
|
return template('bf-gdd.tpl', info)
|
|
|
|
@route('/gdd')
|
|
|
|
@route('/gdd')
|
|
|
|
def gdd():
|
|
|
|
def gdd():
|
|
|
|