forked from clintbellanger/yourgameideaistoobig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
183 lines (137 loc) · 6.24 KB
/
index.html
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<head>
<title>Sua ideia de jogo é grande demais</title>
<script type="text/javascript">
function estimate(form) {
var budget = 1000;
for (var i=0; i < form.elements.length; i++) {
if (form.elements[i].checked == true) {
budget = budget * form.elements[i].value;
}
}
budget = Math.round(budget);
// format estimate
var formatted_budget = budget.toString();
formatted_budget = formatted_budget.replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,");
document.getElementById("estimate").innerHTML = "<p>Estimativa: $" + formatted_budget + "</p>";
var solo_time;
var solo_units;
if (budget >= 50000) {
solo_time = Math.round(budget / 50000).toFixed(1);
solo_units = "anos";
}
else if (budget >= 4000) {
solo_time = Math.round(budget / 4200).toFixed(1);
solo_units = "meses";
}
else {
solo_time = Math.round(budget / 1000).toFixed(1);
solo_units = "semanas";
}
var descr = "<p>Você poderia contratar um time para faze-lo por este preço. Ou poderia fazer você mesmo em cerca de " + solo_time + " " + solo_units + "</p>";
document.getElementById("description").innerHTML = descr;
}
</script>
<style>
body {text-align: center; margin-top: 50px; font-family: helvetica, arial, sans-serif;}
h1 {font-size: 32pt; text-align: center; text-shadow: 0px 1px 0px rgba(255,255,255,.5);}
#content {width: 600px; text-align: left; margin: 0 auto; border-radius: 10px; background-color: #dddddd; padding: 20px;}
form {margin-left: 100px;}
#estimate {text-align: center; font-size: 32pt; color: #ff0000; text-shadow: 0px 1px 0px rgba(255,255,255,.5);}
#description {text-align: center; color: #666666;}
#footer {color: #999999; font-size: 8pt;}
#footer a {color: #6666ff;}
#left_ads {float: left;}
#right_ads {float: right;}
#advice {font-size: 9pt; text-align: center;}
</style>
</head>
<body>
<div id="left_ads">
</div>
<div id="right_ads">
</div>
<div id="content">
<h1>Sua ideia de jogo é grande demais</h1>
<p>
Me fale sobre o seu jogo!
</p>
<form action="">
<input type="checkbox" name="feature" id="start" value="1.0" checked="checked" disabled="disabled"/>
<label for="start">Ok, é um jogo com...</label>
<br />
<input type="checkbox" name="feature" id="threedee" value="4.2" onclick="estimate(this.form);" />
<label for="threedee">Visual de ultima geração!</label>
<br />
<input type="checkbox" name="feature" id="openworld" value="7.6" onclick="estimate(this.form);" />
<label for="openworld">Vasto mundo aberto para explorar!</label>
<br />
<input type="checkbox" name="feature" id="mmo" value="12.0" onclick="estimate(this.form);" />
<label for="mmo">Massivo Multiplayer Online (MMO)!</label>
<br />
<input type="checkbox" name="feature" id="fps" value="3.5" onclick="estimate(this.form);" />
<label for="fps">Mecânicas de tiro em primeira pessoa (FPS)!</label>
<br />
<input type="checkbox" name="feature" id="rts" value="3.2" onclick="estimate(this.form);" />
<label for="rts">Mecânicas de estratégia em tempo real (RTS)!</label>
<br />
<input type="checkbox" name="feature" id="fighting" value="2.8" onclick="estimate(this.form);" />
<label for="fighting">Mecânicas de combate corpo a corpo!</label>
<br />
<input type="checkbox" name="feature" id="driving" value="2.4" onclick="estimate(this.form);" />
<label for="driving">Direção e veículos!</label>
<br />
<input type="checkbox" name="feature" id="rpg" value="1.8" onclick="estimate(this.form);" />
<label for="rpg">Elementos de RPG! Muitos atributos e melhoramentos!</label>
<br />
<input type="checkbox" name="feature" id="puzzle" value="1.2" onclick="estimate(this.form);" />
<label for="puzzle">Elementos de Puzzle ou Plataformas!</label>
<br />
<input type="checkbox" name="feature" id="creation" value="2.0" onclick="estimate(this.form);" />
<label for="creation">Criação de personagens completamente customizável!</label>
<br />
<input type="checkbox" name="feature" id="classes" value="3.0" onclick="estimate(this.form);" />
<label for="classes">Muitas classes e personagens distintos para escolhar!</label>
<br />
<input type="checkbox" name="feature" id="crafting" value="1.2" onclick="estimate(this.form);" />
<label for="crafting">Sistema de <i>crafting</i> vasto e completo!</label>
<br />
<input type="checkbox" name="feature" id="pve_pvp" value="2.4" onclick="estimate(this.form);" />
<label for="pve_pvp">Gameplay tanto PvE quanto PvP!</label>
<br />
<input type="checkbox" name="feature" id="story" value="4.5" onclick="estimate(this.form);" />
<label for="story">Modo de campanha com horas e horas de historia!</label>
<br />
<input type="checkbox" name="feature" id="procedural" value="2.6" onclick="estimate(this.form);" />
<label for="procedural">Geração procedural para rejogabilidade sem fim!</label>
<br />
<input type="checkbox" name="feature" id="dialog" value="1.5" onclick="estimate(this.form);" />
<label for="dialog">Árvores de diálogo ramificadas com muito texto!</label>
<br />
<input type="checkbox" name="feature" id="vox" value="1.2" onclick="estimate(this.form);" />
<label for="vox">Dublagem de qualidade para cada frase!</label>
<br />
<input type="checkbox" name="feature" id="mods" value="1.5" onclick="estimate(this.form);" />
<label for="mods">Ferramentas de edição e criação de Mods para a comunidade!</label>
<br />
<input type="checkbox" name="feature" id="platforms" value="1.5" onclick="estimate(this.form);" />
<label for="platforms">Disponível para todas as principais plataformas!</label>
<br />
</form>
<div id="estimate">
<p>Estimativa: $1,000</p>
</div>
<div id="description">
<p>Você poderia contratar um time para faze-lo por este preço. Ou poderia fazer você mesmo em cerca de 1 semana.</p>
</div>
<p id="advice">
<a href="advice.html">Mas...!</a>
</p>
</div>
<div id="footer">
<p>Completamente inventado por <a href="http://clintbellanger.net/rpg/">Clint Bellanger</a>, que deveria estar trabalhando no jogo dele (que é grande demais)</p>
<p>Traduzido para o português brasileiro por <a href="https://github.com/pentalpha/">Pitágoras Alves</a></p>
</div>
</body>
</html>