Inform 7 | 2 - La niña fantasma | Tutorial en español (7.9.3 - build 6M62)
Tutorial en español de Inform 7 (versión 7.9.3 - build 6M62)
Segunda parte. ¡Continuamos aprendiendo Inform 7!
Para seguir el tutorial:
1. Descarga e instala Inform 7 en tu ordenador: http://inform7.com/downloads/
2. Descarga e instala I7-Spanish: https://github.com/sarganar/I7-Spanish (descarga la extensión Spanish Language.i7x, desde el menú File de Inform 7, hacer click en Install Extension y seleccionar la extensión a instalar. Adicionalmente puedes descargar más extensiones oficiales de https://github.com/i7/extensions
3. Asegúrate de poner (in Spanish) justo después del título y autor que Inform 7 pone al inicio de tu código. Por ejemplo: "Mi juego" by Nombre Autor (in Spanish)
Índice:
0:00 Cambiamos las preferencias. Comentarios.
05:24 Empezamos a escribir una mini aventura de terror.
19:32 Creamos una puerta que se abre con llave.
36:56 Personaje: la niña fantasma.
42:55 Ampliando el vocabulario: jugar / jugar con
55:30 Implementando un final alternativo.
57:55 Wait for any key. Usamos la librería Basic Screen Effects.
1:01:56 Release.
---------
Enlaces:
Inform 7 - http://inform7.com/
Extensiones de Inform 7 - https://github.com/i7/extensions
Quixe (lo veremos más adelante) - https://github.com/erkyrath/quixe
Rayuela de Arena 2022 - https://itch.io/jam/rayuela-de-arena-2022
Mi página en itchio - https://asvelin.itch.io/
---------
Código fuente del juego programado en el vídeo:
"PreJamRayuela2022" by Xavier Carrascosa (in Spanish)
Include Basic Screen Effects SP by Emily Short.
[Hablar con personajes]
Instead of telling someone about something, try asking the noun about it. Instead of answering the noun that something, try asking the noun about it.
[Jugar]
[Se puede jugar, pero también se puede jugar con personaje]
Playing is an action applying to nothing.
Understand "jugar" and "juguemos" and "juega" as playing.
Report playing: say "¿A qué quieres jugar?".
Playingwith is an action applying to one thing.
Understand "juega con [someone]" and "jugar con [someone]" as playingwith.
Report playingwith: say "[The noun] te dice: ¿A qué quieres jugar?".
Casa abandonada is a room. The description is "Frente a ti se yergue la antigua mansión de la familia Rossenbaum. ¿Te atreves a entrar?"
Hall de entrada is inside from Casa. The description is "[if unvisited]Entras por primera vez en la casa. Un lúgubre viento helado te hace rechinar los dientes...[paragraph break][end if]La casa huele a humedad y está todo cubierto por un manto de polvo. Al fondo puedes ver unas oscuras escaleras".
A llave (f) is here. The description is "Una gran llave de hierro."
Some escaleras are here. The description is "Las escaleras parecen conducir a un sótano.". The escaleras are scenery. Understand "escalera/peldanos/peldano" as escaleras.
The puerta del sotano (f) is down of Hall de entrada and outside from Sotano.
The puerta del sotano is a door. "Puedes ver la desvencijada puerta del sótano, que está [if open]abierta[else if closed]cerrada[end if].".
The description of the puerta del sotano is "[if closed]Tiene una cerradura, parece que necesitarás una llave para abrirla. [end if]La puerta está abierta".
The puerta del sotano is lockable and locked.
The matching key of the puerta del sotano is the llave.
The description of Sotano is "Lúgubre.".
Instead of opening the puerta del sotano:
if the player carries the llave and the puerta del sotano is closed:
now the puerta del sotano is unlocked;
now the puerta del sotano is open;
say "Abres la puerta, que emite un débil crujido.";
otherwise:
continue the action.
After opening the puerta del sotano, say "Abres la puerta, que emite un débil crujido.".
Instead of going dentro in Hall de entrada:
try going down.
A fantasma (f) is in Sotano. The fantasma is a woman. "Una niña fantasmal te observa con sus enormes ojos hundidos.". The printed name of the fantasma is "niña fantasmal".
The description of the fantasma is "La niña parece levitar.".
Understand "nina/ojos" as the fantasma.
Instead of asking the fantasma about "llave", say "La niña dice: '¡Esa llave es mía!'".
Instead of asking the fantasma about something, say "La niña dice: '¡Quiero jugar!'".
Instead of playing:
if the fantasma is in location:
say "¡Bieeen!";
wait for any key;
clear the screen;
say "Te quedas un rato jugando hasta que la niña se aburre y te deja salir.";
end the story;
otherwise:
continue the action.
Instead of playingwith the fantasma, try playing instead.
Instead of exiting from Sotano:
if the fantasma is in location:
say "La niña dice: '¡No te irás de aquí nunca!'";
wait for any key;
clear the screen;
say "Has muerto...";
end the story;
otherwise:
continue the action.