-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.yaml
130 lines (118 loc) · 4.91 KB
/
app.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
application: leagueofshadows-demo
version: 1
runtime: python
api_version: 1
threadsafe: yes
# Accessed with os.environ in App Engine
env_variables:
# The default game_name to use when no game_name param is given
default_game_name: default
# The name of the app (Eg. "League of Interns")
global_name: League of Shadows
# The header desc (Eg. "An internal assassins game")
global_desc: |
An online assassins game powered by App Engine.
# The body desc (Eg. "Pick up your weapon from Bob")
short_desc: |
Please review the rules below!
# Show the internal title of the current game (eg. 'MTV') on the UI.
show_game_title: false
# Show the JS countdown timer
show_countdown: true
# Show general game stats
show_stats: true
# Show leaderboard
show_leaderboard: true
# Rules
rules: |
<i>How to play:</i>
<p> Assassins is a game of cleverness and stealth. You will be given a target, and your job is to eliminate that target with your weapon.
They will give you a kill code that you must enter into this site once they are killed.
Otherwise, your kill will not be counted.</p>
<p> But don't relax too much -- there will be an assassin after you as well. If you are killed, be honorable and properly admit to your kill as soon as possible so that targets may be transferred.</p>
<p> Once a target is killed, that target's target will become the killer's new target. Targets will continue to be transferred until there is one person left.</p>
<ol>
<li>Do not disrupt others.</li>
<li><strong>No indoor kills</strong>. Playing the game indoors is disruptful.</li>
<li>Do not hurt anyone, including your target.</li>
<li>Only target your own target.</li>
<li>Be honest. If you were killed, surrender your kill code.</li>
</ol>
If you are found breaking any of these rules, you may be disqualified.
# FAQs
# FAQs for suicides and the public_hitlist are automatically added depending on allow_suicide: true and public_histlist:true.
# You can change this behavior in templates/index.html
faq: |
<p>
<b>Q: </b><i>How do I eliminate my target?</i><br />
<b>A: </b>Just pin them with your weapon! However, be careful not to actually harm your victim, not to disrupt others, and review the rules.<br /><br />
When you get killed, surrender your <strong>kill code</strong> so your death can be recorded.
</p>
<p>
<b>Q: </b><i>Where do I get a weapon?</i><br />
<b>A: </b>You can either provide your own, or pick up your weapon from us. We recommend writing your kill code on it to make it easy to remember.
</p>
<p>
<b>Q: </b><i>Are there prizes?</i><br />
<b>A: </b>There will be prizes for the last player alive (and/or the individual(s) with the most kills), as well as a badge for the top-ranking players.<br /><br />
</p>
# Emails for the Contact Us link
contact_emails: admin@example.com
# Maximum number of players per game
max_players: 200
# Time zones are in ISO 8601, eg.'2013-01-01T00:00-07:00' is midnight morning of New Year, 2013, Pacific Time
# Note js countdown widget has a max range of 99 days.
# THESE TIMES ARE ONLY FOR THE JAVASCRIPT COUNTDOWN UI. The game needs to be started and ended manually by an admin.
# TODO(billycao): Automatic crons to start and end the game automagically.
time_registration_ends: 2013-01-01T00:00-07:00
time_game_begins: 2013-01-01T00:00-07:00
time_game_ends: 2013-01-02T00:00-07:00
# Allow suicides (entering your own kill code)
allow_suicide: true
# Activate the public hitlist
public_hitlist: false
# Max number of players to put on the hitlist
num_histlist: 20
# Send email to players upon start
send_start_email: false
# Sender of start_email. This must be an admin email
start_email_sender: "League of Shadows <admin@example.com>"
# HTML email to send to players when the game begins, %s = game_name
start_email_body: |
Thanks for joining the <a href="https://www.example.com/?game_name=%s">League of Shadows</a>!<br />
<br />
<b>The games have begun</b>!<br />
<br />
Check the site for your first target, rules/FAQ, and your kill code (remember it!).<br />
<br />
--- <br />
<br />
Be ninja, play fair, and <b>good luck</b>!<br />
---<br />
<br />
This message was automatically generated by League of Shadows. Problems? Let us know!<br />
handlers:
# Favicon
- url: /favicon\.ico
static_files: favicon.ico
upload: favicon\.ico
# Statics
- url: /images
static_dir: assets/images
- url: /js
static_dir: assets/js
- url: /stylesheets
static_dir: assets/stylesheets
# App Engine Dashboard
- url: /appeng/.*
script: $PYTHON_LIB/google/appengine/ext/admin
login: admin
# Admin
- url: /admin/.*
script: main.py
login: admin
auth_fail_action: unauthorized
- url: .*
script: main.py
login: required
auth_fail_action: redirect