Inform: Różnice pomiędzy wersjami

[wersja nieprzejrzana][wersja przejrzana]
Usunięta treść Dodana treść
Thijs!bot (dyskusja | edycje)
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 [[Kompilator|kompilatorzekompilator]]ze i [[Biblioteka programistyczna|bibliotekach]] wersji poprzedniej. [[Kod źródłowy]] napisany w Informie 7 jest tłumaczony na kod źródłowy Informa 6 i [[Kompilacja (informatyka)|kompilowany]] w jego formacie. Dzięki temu nowa wersja zachowuje obustronną [[Kompatybilność komputerowa|kompatybilność]] z Informem 6 i jego [[Interpreter|interpreteramiinterpreter]]ami.
 
== 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">&nbsp;&nbsp;&nbsp;&nbsp;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">&nbsp;&nbsp;&nbsp;&nbsp;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://wwwinform7.inform-fiction.orgcom/ Inform 7] - Oficjalna strona internetowa
* [http://www.inform-fiction.org/inform6.html Inform 6] – Oficjalna strona internetowa
 
[[Kategoria:Interaktywna fikcja]]