From 1484babf18146f11177d379fe865708e84d00447 Mon Sep 17 00:00:00 2001 From: "p.kosyh" Date: Wed, 11 Nov 2009 06:19:05 +0000 Subject: [PATCH] docs fixes --- doc/writing_games-en.txt | 8 +++++++- doc/writing_games.txt | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/doc/writing_games-en.txt b/doc/writing_games-en.txt index f529bea..6f7bfcb 100644 --- a/doc/writing_games-en.txt +++ b/doc/writing_games-en.txt @@ -1,6 +1,6 @@ == 0. General information == -Game code for STEAD is written in lua (5.1), therefore it is useful to know the language, though not necessary. The engine code in lua is only ~900 lines long. And, of course it is the best documentation. +Game code for STEAD is written in lua (5.1), therefore it is useful to know the language, though not necessary. The engine code in lua is about ~2000 lines long. And it is the best documentation. The main game window contains information about static and dynamic parts of the scene, active events and the scene picture with possible passages to other scenes (in the graphic interpreter). @@ -716,6 +716,12 @@ street = room { }; }}} +From version 1.0.0 the interpreter can compose picture from base image and overlays: + +{{{ +pic = 'gfx/mycat.png';gfx/milk.png@120,25;gfx/fish.png@32,32' +}}} + get_music() returns the current track name. From version 0.7.7 the set_music() function can get an additional parameter — the number of playbacks. You can get the current counter with “get_music_loop”. -1 means that the playback of the current track is over. diff --git a/doc/writing_games.txt b/doc/writing_games.txt index a63e40f..a789b92 100644 --- a/doc/writing_games.txt +++ b/doc/writing_games.txt @@ -1,6 +1,6 @@ == 0. Общие сведения == -Код игр для STEAD пишется на lua (5.1), поэтому, знание этого языка полезно, хотя и не необходимо. Код движка на lua занимает всего ~900 строк и лучшей документацией, конечно, является изучение его кода. +Код игр для STEAD пишется на lua (5.1), поэтому, знание этого языка полезно, хотя и не необходимо. Код движка на lua занимает около ~2000 строк и лучшей документацией является изучение его кода. Главное окно игры содержит информацию о статической и динамической части сцены, активные события и картинку сцены с возможными переходами в другие сцены (в графическом интерпретаторе). @@ -692,6 +692,12 @@ knife = obj { nam = 'Нож'..img('img/knife.png'), } }}} + +Начиная с версии 1.0.0 интерпретатор может обрабатывать составные картинки, например: +{{{ +pic = 'gfx/mycat.png';gfx/milk.png@120,25;gfx/fish.png@32,32' +}}} + Интерпретатор проигрывает в цикле текущую музыку, которая задается с помощью функции: set_music(имя музыкального файла).