-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
1022 lines (870 loc) · 30.7 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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Innocent Hill Engine</title>
<meta name="description" content="Text-adventure engine to create your conversational games!">
<meta name="author" content="Manz">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:200,400|Noto+Sans:700' rel='stylesheet' type='text/css'>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="css/reveal.min.css">
<link rel="stylesheet" href="css/theme/default.css" id="theme">
<!-- For syntax highlighting -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<style type="text/css">
* {
outline:none;
}
.invisible {
background:none!important;
border:0!important;
box-shadow:none!important;
}
.hidden { opacity:0 }
.markb {
border:20px solid #000!important;
}
p strong {
color:#31DAE8;
font-family:'Open Sans'!important;
letter-spacing:1px;
}
ul.colors strong {
color:#F56610;
}
.vam { vertical-align:middle!important }
table.t td, table.t th {
border:1px solid #FFF;
padding:8px;
background:rgba(255, 255, 255, 0.05);
font-weight:lighter;
}
table.t th {
background:rgba(0, 0, 0, 0.15);
}
kbd {
padding: 2px 4px!important;
white-space: nowrap;
color: #000!important;
background: none repeat scroll 0% 0% #EEE;
border-width: 1px 6px 6px 1px!important;
border-style: solid!important;
border-color: #CCC #AAA #888 #BBB!important;
font-size:x-large!important;
}
em.r { color:#FF7722;}
ul li {
list-style-type:square;
line-height:140%!important;
}
h2 {
margin-bottom:0.4em!important;
}
.round {
border-radius:20px!important;
}
.bowh {
border:30px solid #FFF!important;
background:#FFF!important;
}
li.fragment { text-shadow:0 0 5px #222; }
.color-red { color:#DD4444!important }
.color-green { color:#00AA00 }
.tipright { font-size:large!important; text-align:right }
.blackground {
background:#000!important;
transition: background-color 1s linear;
-moz-transition: background-color 1s linear;
-o-transition: background-color 1s linear;
-webkit-transition: background-color 1s linear;
}
input {
background:#FFF;
color:#222;
padding:6px;
border:0;
border-radius:10px;
display:block;
min-width:300px;
margin:auto;
font-family:'Open Sans';
font-size:18px;
box-shadow:2px 2px 5px #111;
}
.black {
background: #07203a;
background: radial-gradient(center, circle cover, #787878 0%, #202020 100%);
}
ul.items li {
list-style-type:none;
}
ul.items img {
vertical-align:middle;
}
.ttop li {
vertical-align:text-top!important;
}
pre {
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
}
code {
background:#333!important;
}
div.c {
margin-top:1em;
font-family:'Raleway';
font-size:42px;
}
span.n { color:#ECDC17 }
span.v { color:#2BAA31 }
span.c { color:#06DFDA }
</style>
<script type="text/javascript">
function goURL(p) {
}
</script>
<!-- If the query includes 'print-pdf', use the PDF print sheet -->
<script>
document.write( '<link rel="stylesheet" href="css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' );
</script>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section>
<h1>INNOCENT HILL ENGINE</h1>
<p>
<small>Por <a href="http://www.emezeta.com/">José Román Hdez</a> / <a href="http://twitter.com/manz">@Manz</a></small>
</p>
</section>
<section>
<section>
<h2>¿Quién soy?</h2>
<a href="http://www.emezeta.com/"><img class="invisible" src="img/emezeta-logo.png" /></a>
<p>Creador de <a href="http://www.emezeta.com/">Emezeta.com</a></p>
</section>
<section>
<h2>Temáticas</h2>
<img class="invisible fragment fade-in" src="img/book.png" />
<img class="invisible fragment fade-in" src="img/android-logo.png" /><br />
<img class="invisible fragment fade-in" src="img/optimization.png" />
<img class="invisible fragment fade-in" src="img/guybrush.png" />
</section>
<section>
<h2>Colaborador</h2>
<a href="http://www.naukas.com/"><img class="invisible" src="img/naukas-logo.png" /></a>
<p>Colaborador en <a href="http://www.naukas.com/">Naukas.com</a></p>
</section>
<section>
<h2>PERO... ¿VAS A SEGUIR HABLANDO DE TI?</h2>
<img class="invisible" src="img/stan.gif" />
</section>
</section>
<section>
<section >
<h2>Innocent Hill Engine</h2>
<div style="background:url(img/enter.png) 55px no-repeat; background-size:90% 90%; height:400px">
<a href="http://manzdev.github.io/text-adventure-engine"><img class="invisible" src="img/ihe.gif" /></a>
</div>
</section>
<section data-transition="linear">
<h2>¿Qué es una aventura conversacional?</h2>
<video autobuffer controls>
<source src="img/sheldon.webm">
</video>
</section>
<!--section>
<h2>¿Quizás sea algo como esto?</h2>
<img class="invisible" src="img/knock-knock-knock-penny.gif" />
</section-->
<section>
<h2>En realidad, es mucho más...</h2>
<ul>
<li class="fragment">Un relato, una historia, un mundo.</li>
<li class="fragment">Sensación (no real) de libertad.</li>
<li class="fragment">Una historia interactiva.</li>
<li class="fragment">Controlar la dirección de la aventura.</li>
<li class="fragment">Múltiples finales alternativos.</li>
</ul>
</section>
<section >
<h2>Basado en «El Jabato» (A.AD)</h2>
<img class="markb" src="img/jabato.gif" />
</section>
<section data-background="img/chrome-shape.png" data-background-size="785px 553px" data-background-transition="zoom" data-transition="linear">
<h2>¡Desde tu propio navegador!</h2>
<img class="invisible" src="img/chrome.png" />
<img class="invisible" src="img/firefox.png" />
<img class="invisible" src="img/ie.png" />
<img class="invisible" src="img/safari.png" />
</section>
<section data-background="img/chrome-shape.png" data-background-size="785px 553px" data-transition="linear">
<br /><br />
<img class="invisible" src="img/adventure-sample.png" style="width:552px;height:425px" />
</section>
<section data-background="img/chrome-shape.png" data-background-size="785px 553px">
<h2>Objetivos</h2>
</section>
<section data-background="img/chrome-shape.png" data-background-size="785px 553px">
<h3>Fácil de jugar</h3>
<p>¿Quién no sabe usar un navegador?</p>
</section>
<section data-background="img/chrome-shape.png" data-background-size="785px 553px">
<h3>Fácil de crear</h3>
<p>Simplemente, centrarse en la historia</p>
</section>
<section data-background="img/chrome-shape.png" data-background-size="785px 553px">
<h3>Multijugador</h3>
<p>Porque todo es mejor con amigos (o rivales)</p>
</section>
<section data-background="img/phone.png" data-background-size="354px 600px" data-background-position="center center" data-background-transition="zoom">
<div style="float:right">
<h3>Portátil</h3>
<p>En cualquier lugar.</p>
<p>En cualquier momento.</p>
</div>
</section>
</section>
<section data-background="#111" data-background-transition="zoom">
<section >
<h2>Características</h2>
<div style="background:url(img/enter.png) 55px no-repeat; background-size:90% 90%; height:400px">
<a href="http://manzdev.github.io/text-adventure-engine"><img class="invisible" src="img/ihe.gif" /></a>
</div>
</section>
<section data-transition="linear">
<h2>Aventura conversacional</h2>
<img class="invisible" src="img/text-adventure.gif" style="width:640px;height:554px" />
</section>
<section data-transition="linear">
<h2>Acciones principales</h2>
<img class="invisible fragment roll-in" src="img/eye.png" />
<img class="invisible fragment roll-in" src="img/walk.png" />
<img class="invisible fragment roll-in" src="img/items.png" />
<img class="invisible fragment roll-in" src="img/think.png" />
<span id="acciones_ihe"></span>
</section>
<section>
<h2>Resto de acciones</h2>
<img class="invisible fragment roll-in" src="img/talk.png" /><br />
<ul>
<li class="fragment">Se envían los mensajes a un «chat» multijugador</li>
<li class="fragment">Independiente por cada localidad</li>
</ul>
</section>
<section>
<h2>Y además es</h2>
<img class="invisible" src="img/osi.png" />
<p>Cualquiera puede participar y colaborar</p>
</section>
</section>
<section>
<section>
<h2>Instalación de Innocent Hill</h2>
</section>
<section>
<h2>Es una aplicación web</h2>
<img class="invisible" src="img/wordpress.png" /><br />
<a href="http://wordpress.org/">WordPress</a>
</section>
<section>
<h2>Requisitos</h2>
<ul>
<li class="fragment">Servidor de alojamiento (hosting)</li>
<li class="fragment">Servidor web Apache</li>
<li class="fragment">PHP 5.3 o superior</li>
</ul>
</section>
<section>
<h2>Instalación local</h2>
<p>Si no tenemos un servidor de alojamiento...</p>
<a href="http://www.uwamp.com/en/"><img class="invisible fragment roll-in" src="img/uwamp.png" /></a>
<a href="http://www.apachefriends.org/es/index.html"><img class="invisible fragment roll-in" src="img/xampp.png" /></a>
<a href="http://www.wampserver.com/en/"><img class="invisible fragment roll-in" src="img/wampserver.png" /></a>
<p class="fragment roll-in">Más: <a href="http://www.emezeta.com/articulos/15-aplicaciones-para-montar-servidores-web-en-local">15 aplicaciones para montar servidores web en local</a></p>
</section>
<section data-transition="concave">
<h2>Menú del uWamp</h2>
<img class="invisible" src="img/uwamp-menu.png" />
</section>
<section data-transition="concave">
<h2>Descarga del motor</h2>
<p>Descarga desde su <a href="http://manzdev.github.io/text-adventure-engine/">web</a> o <a href="https://github.com/ManzDev/text-adventure-engine">GitHub</a>.</p>
<img class="invisible" src="img/download.png" />
</section>
<section data-transition="concave">
<h2>Descomprime el contenido</h2>
<p>Descomprime en la carpeta de tu servidor web.</p>
<img class="invisible" src="img/unzip.png" />
</section>
<section data-transition="concave">
<h2>¡Listo!</h2>
<p>Ahora... ¡simplemente accede desde un navegador!</p>
</section>
</section>
<section>
<section>
<h2>Creación de una aventura</h2>
</section>
<section>
<h2>Requisitos</h2>
<ul>
<li class="fragment">Imaginación</li>
<li class="fragment">Lógica</li>
<li class="fragment">Editar textos</li>
<li class="fragment">Fotografías</li>
</ul><br />
<span class="fragment">(o el teléfono de alguien que sepa hacerlas)</span>
</section>
<section>
<h2>Estructura de archivos</h2>
<img class="invisible" src="img/folder.png" />
<p>En la carpeta <strong>games</strong> se encuentran los diferentes juegos.</p>
<p>El motor incluye un juego de ejemplo: <strong>default</strong>.</p>
</section>
<section>
<h2>Cada juego contiene las carpetas...</h2>
<ul class="colors">
<li class="fragment"><strong>assets</strong>: Recursos (imágenes, sonidos...)</li>
<li class="fragment"><strong>chats</strong>: Chats de cada habitación</li>
<li class="fragment"><strong>data</strong>: Datos del juego (habitaciones, items...)</li>
<li class="fragment"><strong>users</strong>: Datos de los jugadores</li>
</ul>
</section>
<section>
<h2>Además de información del juego</h2>
<img class="invisible" src="img/covers.png" />
</section>
<section>
<h2>Carpeta «assets»</h2>
<p>Escenas del lugar, imágenes del objeto (inventario), música, etc...</p>
</section>
<section>
<h2>Escenas de lugar</h2>
<p>Recomendaciones: Formato JPEG, 700x300 píxels. HDR.</p>
<img src="img/hospcorridor.jpg" />
<p class="fragment">Gracias a <a href="http://abandonalia.blogspot.com.es/">Abandonalia</a>, <a href="http://abandonadoasusuerte.blogspot.com.es/">Abandonado a su suerte</a> y <a href="http://www.flickr.com/photos/utopia13/">Iñaki Couceiro</a></p>
</section>
<section>
<h2>Conseguir buenas imágenes</h2>
<ul>
<li class="fragment"><a href="http://www.flickr.com/search/?q=&l=cc">Flickr</a> (Creative Commons)</li>
<li class="fragment"><a href="http://500px.com/creativecommons">500px</a> (Creative Commons)</li>
<li class="fragment"><a href="http://en.wikipedia.org/wiki/Wikipedia:Public_domain_image_resources">Wikipedia</a> (Dominio público)</li>
<li class="fragment">Quizás... ¿hacerlas tú mismo?</li>
</ul>
</section>
<section>
<h2>Items de inventario</h2>
<p>Recomendaciones: Formato JPEG, 128x128 píxels.</p>
<img src="img/brujula.jpg" />
<img src="img/llave_roja.jpg" />
<img src="img/palanca.jpg" />
</section>
<section>
<h2>Conseguir buenos iconos</h2>
<ul>
<li class="fragment"><a href="https://www.iconfinder.com/search/?price=free">IconFinder</a> (Gratuitas)</li>
<li class="fragment"><a href="http://www.iconarchive.com/search?license=commercial">IconArchive</a> (Gratuitas)</li>
<li class="fragment"><a href="http://www.clker.com/">Clker</a> (Dominio público)</li>
</ul>
</section>
<section>
<h2>Carpeta «chats»</h2>
<p>Conversaciones de los usuarios en las diferentes localidades</p>
</section>
<section>
<h2>Carpetas «data» y «users»</h2>
<table class="t">
<tr>
<th>Contenido</th>
<th>Carpeta</th>
<th>Archivo</th>
<th>¿Qué contiene?</th>
</tr>
<tr>
<td>Localidades</td>
<td>data</td>
<td>_______.json</td>
<td>Mirar, andar, etc...</td>
</tr>
<tr>
<td>Objetos</td>
<td>data</td>
<td>items.json</td>
<td>Items de inventario</td>
</tr>
<tr>
<td>Jugadores</td>
<td>users</td>
<td>_______.json</td>
<td>inventario, acciones...</td>
</tr>
</table>
</section>
</section>
<section>
<section>
<h2>¿Qué es un archivo JSON?</h2>
<img class="invisible" src="img/json-logo.png" />
</section>
<section>
<h2>Editores</h2>
<ul>
<li class="fragment"><a href="http://jsoneditoronline.org/">JSON Editor Online</a></li>
<li class="fragment"><a href="http://json.bubblemix.net/">JSON Tinker</a></li>
<li class="fragment"><a href="http://www.thomasfrank.se/downloadableJS/JSONeditor_example.html">Classic JSON</a></li>
<li class="fragment"><a href="http://tomeko.net/software/JSONedit/index.php?lang=en">JSONEdit</a> (Windows)</li>
<li class="fragment"><a href="http://jsonlint.com/">JSONLint Validator</a>
<li class="fragment">Editor textos: <a href="https://www.sublimetext.com/">Sublime Text</a></li>
</ul>
</section>
<section data-transition="linear">
<h2>Crear un lugar</h2>
<p>Crearemos un archivo de texto en la carpeta «data».</p>
<p>Por ejemplo, <strong>calle.json</strong></p>
</section>
<section data-transition="linear">
<h2>Bloque inicial</h2>
<p>Creamos un bloque inicial vacío.</p>
<pre><code class="codigo" data-trim>
{
}
</code></pre>
<p>Los bloques se crean mediante llaves <strong>{ }</strong></p>
</section>
<section data-transition="linear">
<h2>Elementos</h2>
<p>Cada elemento que crearemos tendrá esta estructura:</p>
<div class="c">
<p>"<span class="n">elemento</span>"<span class="c">:</span> "<span class="v">valor</span>"</p>
</div>
<div class="c fragment">
<p>"<span class="n">elemento</span>"<span class="c">:</span> ["<span class="v">valor1</span>", "<span class="v">valor2</span>", ... ]</p>
</div>
</section>
<section data-transition="linear">
<h2>Bloque «Información»</h2>
<p>En el bloque <strong>info</strong> especificaremos información del lugar:</p>
<pre><code class="codigo" data-trim>
{
"info": {
}
}
</code></pre>
</section>
<section data-transition="linear">
<h2>Información del lugar</h2>
<p>Por ejemplo, el <strong>nombre</strong>, <strong>imagen</strong> y <strong>descripción</strong>:</p>
<pre><code class="codigo" data-trim>
{
"info": {
"name": "lugar",
"image": "lugar.jpg",
"description": "Esta parece la zona más vieja del pueblo. Varias casas antiguas aparecen a lo largo de la calle, y sus puertas, cerradas. Algunas grandes macetas adornan la estancia. Un poste de madera sujeta un cartel."
}
}
</code></pre>
<p>(Las imágenes deben situarse en la carpeta «<strong>assets</strong>»)</p>
<p>¡Ojo a las comas!</p>
</section>
<section data-transition="linear">
<h2>Bloque «Data»</h2>
<p>Creamos un nuevo bloque llamado <strong>data</strong>:</p>
<pre><code class="codigo" data-trim>
{
"info": {
...
},
"data": {
}
}
</code></pre>
</section>
<section data-transition="linear">
<h2>Bloque «Exits»</h2>
<p>Dentro, creamos un nuevo bloque llamado <strong>exits</strong>:</p>
<pre><code class="codigo" data-trim>
{
"info": {
...
},
"data": {
"exits": {
}
}
}
</code></pre>
</section>
<section data-transition="linear">
<h2>Salidas (desplazamiento)</h2>
<p>Y los lugares a los que podemos ir:</p>
<pre><code class="codigo" data-trim>
{
"info": {
...
},
"data": {
"exits": {
"sur": "taberna",
"oeste": "hospital",
"este": "prision"
}
}
}
</code></pre>
<p>Por ejemplo, al <strong>sur</strong> se llega al lugar <strong>taberna.json</strong></p>
</section>
<section data-transition="linear">
<h2>Direcciones</h2>
<img class="invisible" src="img/compass.png" />
<p>Norte, sur, este, oeste, subir, bajar, entrar, salir.</p>
</section>
<section data-transition="linear">
<h2>Salidas (desplazamiento)</h2>
<p>Con condiciones (necesitas la <strong>llave roja</strong>):</p>
<pre><code class="codigo" data-trim>
{
"info": {
...
},
"data": {
"exits": {
"sur": {
"required" : "llave roja",
"target" : "taberna",
"excuse" : "La puerta está cerrada con llave."
}
}
}
}
</code></pre>
</section>
<section data-transition="linear">
<h2>Items (Objetos)</h2>
<p>Creamos un archivo <strong>items.json</strong> donde colocaremos TODOS los items que podemos guardar en nuestro inventario.</p>
</section>
<section data-transition="linear">
<h2>Items (Inventario)</h2>
<p>Con condiciones (necesitas la <strong>llave roja</strong>):</p>
<pre><code class="codigo" data-trim>
{
"llave roja": {
"room": "calle.json",
"image": "llave_roja.jpg",
"look": "Una paqueña llave roja.",
"message": "He cogido la llave roja."
},
...
}
</code></pre>
</section>
<section data-background-transition="fade" data-background="#111" >
<h2>Inventario</h2>
<img class="invisible" src="img/items.gif" style="width:640px;height:551px" />
</section>
<section data-transition="linear">
<h2>Items y Acciones</h2>
<p>Los <strong>items</strong> son objetos de inventario.</p>
<p>Las <strong>acciones</strong> son hechos transparentes.</p>
</section>
<section data-transition="linear">
<h2>Acciones automáticas</h2>
<p>Al visitar un lugar, se crea la acción <strong>lugar_visited</strong>.</p>
<p class="fragment">Al mirar un objeto (con condiciones superadas), se crea la acción <strong>objeto_seen</strong>.</p>
</section>
<section data-transition="linear">
<h2>Salidas condicionales</h2>
<p>Si tienes <strong>brújula</strong> llegas, si no la tienes, te pierdes:</p>
<pre><code class="codigo" data-trim>
{
"info": {
...
},
"data": {
"exits": {
"sur": {
"required" : "brujula",
"target" : "casabosque",
"else" : "bosque"
}
}
}
}
</code></pre>
</section>
<section data-transition="linear">
<h2>Mirar</h2>
<p>Objetos de inventario, en <strong>items.json</strong>.</p>
<p>Objetos del lugar, en el archivo concreto: <strong>calle.json</strong>.</p>
</section>
<section data-transition="linear">
<h2>Mirar</h2>
<p>Objetos de inventario: en <strong>items.json</strong>.</p>
<pre><code class="codigo" data-trim>
{
"info": {
...
},
"data": {
...
},
"mirar": {
"muro": "Hay un muro de ladrillos justo delante de ti.",
"ladrillo": "Ladrillos pequeños, rojos y de aspecto antiguo."
}
}
</code></pre>
</section>
<section data-transition="linear">
<h2>Sinónimos</h2>
<p>Nombre general: alternativa1, alternativa2...</p>
<pre><code class="codigo" data-trim>
{
...
"synonyms" : {
"ladrillo": ["ladrillos", "bloque", "bloques"]
},
"mirar": {
"muro": "Hay un muro de ladrillos justo delante de ti.",
"ladrillo": "Ladrillos pequeños, rojos y de aspecto antiguo."
}
}
</code></pre>
</section>
<section data-transition="linear">
<h2>Mirar (avanzado)</h2>
<p>Crear una acción y aumentar puntos:</p>
<pre><code class="codigo" data-trim>
{
...
"mirar": {
"pared": {
"message": "Hay una sospechosa inscripción que dice «45823».",
"setAction": "inscripcion_vista"
}
}
}
</code></pre>
</section>
<section data-transition="linear">
<h2>Números o cantidades</h2>
<p>Útil para contadores (<strong>inc +1</strong>):</p>
<pre><code class="codigo" data-trim>
{
...
"mirar": {
"pared": {
"message": "Hay una sospechosa inscripción que dice «45823».",
"setAction": "inscripcion_vista",
"inc" : "score"
}
}
}
</code></pre>
</section>
<section data-transition="linear">
<h2>Números o cantidades (II)</h2>
<p>También es posible decrementar y/o especificar la cantidad:</p>
<pre><code class="codigo" data-trim>
{
...
"mirar": {
"pared": {
"message": "Hay una inscripción maligna: «BELÉN ESTEBAN».",
"setAction": "inscripcion_maligna_vista",
"dec" : "score@5"
}
}
}
</code></pre>
</section>
<section data-transition="linear">
<h2>Condiciones avanzadas</h2>
<p>Es posible especificar condiciones más complejas en <strong>required</strong>:</p>
<pre><code class="codigo" data-trim>
{
"info": {
...
},
"data": {
"exits": {
"sur": {
"required" : "brujula",
"target" : "casabosque",
"else" : "bosque"
}
}
}
}
</code></pre>
</section>
<section data-transition="linear">
<h2>Condiciones avanzadas</h2>
<ul class="colors">
<li><strong>"brujula"</strong>: Tenerlo en el inventario</li>
<li class="fragment"><strong>"!brujula"</strong>: no tenerlo en inventario</li>
<li class="fragment"><strong>"#score@5"</strong>: tener 5 o más en score</li>
<li class="fragment"><strong>"-brujula"</strong>: haber cogido y dejado el objeto</li>
<li class="fragment"><strong>"-brujula@calle</strong>: haber dejado el objeto en la calle</li>
<li class="fragment"><strong>"+brujula"</strong>: haberlo cogido alguna vez</li>
</ul>
</section>
<section data-transition="linear">
<h2>Finales alternativos</h2>
<p>Al margen del final oficial de la historia, es posible (y recomendable) crear finales alternativos.</p>
</section>
<section data-transition="linear">
<h2>Bloque finales</h2>
<p>Creamos bloque <strong>ends</strong>, dentro del bloque <strong>data</strong> del lugar donde quieres que finalice la aventura:</p>
<pre><code class="codigo" data-trim>
{
"data": {
"exits": {
...
},
"ends": {
"good": {
"required": ["house_visited", "mapa_seen", "#score@200"],
"title": "Good ending",
"text": "Mensaje del final",
"showscore": "score"
}
}
}
}
</code></pre>
<p>También se puede usar <strong>target</strong> para redirigir a una URL.</p>
</section>
<section data-transition="linear">
<h2>Consejos</h2>
<ul>
<li class="fragment">Puedes crear laberintos con lugares similares</li>
<li class="fragment">Llaves: palanca, tarjeta-ID, pomo...</li>
<li class="fragment">Crea muchos objetos mirables</li>
<li class="fragment">Usa el humor</li>
<li class="fragment">Usa acentos sólo en descripciones</li>
<li class="fragment">UTF-8</li>
</ul>
</section>
</section>
<section data-background-transition="none">
<section>
<h2>Características futuras</h2>
<p>Lo que está por venir...</p>
</section>
<section data-transition="zoom" data-background="#111" >
<h2>Diálogos estilo aventura gráfica</h2>
<img class="invisible" src="img/talking.gif" style="width:640px;height:551px" />
</section>
<section>
<h2>Características futuras</h2>
<ul>
<li class="fragment">Skins o temas gráficos</li>
<li class="fragment">Gestor de juegos instalados</li>
<li class="fragment">Logros conseguidos</li>
<li class="fragment">Mejorar parser (usar alternativos)</li>
<li class="fragment">Generación automática de mapas</li>
<li class="fragment">Soporte bases de datos (SQLite)</li>
</ul>
</section>
<section data-transition="zoom">
<h2>Administrador para el anfitrión</h2>
<img class="invisible" src="img/admin.png" />
</section>
<section data-transition="zoom">
<h2>Editor visual de aventuras</h2>
<img src="img/editor.png" />
</section>
</section>
<section>
<section data-background="#000">
<h2>¡Eso es todo!</h2>
<img class="invisible" src="img/end-of-line.gif" />
</section>
<section data-background="#000">
<h2>¿Dudas? ¿Ideas? ¿Preguntas?</h2>
<p>Contacto: manz@emezeta.com</p>
</section>
<section>
<h2>Innocent Hill Engine</h2>
<div style="background:url(img/enter.png) 55px no-repeat; background-size:90% 90%; height:400px">
<a href="http://manzdev.github.io/text-adventure-engine"><img class="invisible" src="img/ihe.gif" /></a>
</div>
</section>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.min.js"></script>
<script>
// Full list of configuration options available here:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
transition: Reveal.getQueryHash().transition || 'default', // default/cube/page/concave/zoom/linear/fade/none
// Parallax scrolling
// parallaxBackgroundImage: 'https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg',
// parallaxBackgroundSize: '2100px 900px',
// Optional libraries used to extend on reveal.js
dependencies: [
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
{ src: 'plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
]
});
/*
Reveal.configure({
keyboard: {
34: 'next', // go to the next slide when the ENTER key is pressed
33: 'prev',
27: function() {}, // do something custom when ESC is pressed
32: null // don't do anything when SPACE is pressed (i.e. disable a reveal.js default binding)
}
});*/
/*
Reveal.addEventListener( 'fragmentshown', function( event ) {
console.log(event.fragment);
} );
*/
</script>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
$('img').click(function() {
$(this).toggleClass('stretch');