Inform: Różnice pomiędzy wersjami
[wersja nieprzejrzana] | [wersja przejrzana] |
Usunięta treść Dodana treść
m robot dodaje: ja:Inform |
m linki, WP:SK |
||
Linia 4:
W najnowszej wersji o numerze 7 (wydanej w [[2006]] roku, nazywanej również ''Natural Inform'') Inform przybrał formę [[język angielski|języka angielskiego]], dzięki czemu zyskał dla niektórych na czytelności, naturalności i łatwości, ale stał się w pełni wyspecjalizowany.
Wersja ta wciąż bazuje jednak na [[
== Pisanie kodu ==▼
▲==Pisanie kodu==
Przykładowy kod napisany pod Informem 7:
<blockquote style="font-style:normal">
"Hello World" by "I.F. Author"<br />
<br />
The story headline is "An Interactive Example".<br />
<br />
The Living Room is a room. "A comfortably furnished living room."
The Kitchen is north of the Living Room. The Front Door is south
of the Living Room. The Front Door is a closed locked door.<br />
<br />
The insurance salesman is a man in the Living Room. The
description is "An insurance salesman in a tacky polyester suit.
He seems eager to speak to you." Understand "man" as the
insurance salesman.<br />
<br />
A briefcase is carried by the insurance salesman. The description
is "A slightly worn, black briefcase." Understand "case" as the
briefcase.<br />
<br />
The insurance paperwork is in the briefcase. The
description is "Page after page of small legalese." Understand
"papers" or "documents" or "forms" as the paperwork.<br />
<br />
Instead of listening to the insurance salesman:<br />
<div style="margin-left:8em;text-indent:-4em"> say "The salesman bores you with a discussion of life insurance policies. From his briefcase he pulls some paperwork which he hands to you.";</div>
<div style="margin-left:8em;text-indent:-4em"> now the player carries the insurance paperwork.</div>
</blockquote>
W wersjach do Inform 6 język wyglądał bardziej programistycznie:
Linia 91 ⟶ 86:
Include "Grammar";
== Linki zewnętrzne ==
* [http://
* [http://www.inform-fiction.org/inform6.html Inform 6] – Oficjalna strona internetowa
[[Kategoria:Interaktywna fikcja]]
|