docs fixes
This commit is contained in:
parent
85f72c2fbe
commit
1484babf18
|
@ -1,6 +1,6 @@
|
||||||
== 0. General information ==
|
== 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).
|
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.
|
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.
|
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.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
== 0. Общие сведения ==
|
== 0. Общие сведения ==
|
||||||
|
|
||||||
Код игр для STEAD пишется на lua (5.1), поэтому, знание этого языка полезно, хотя и не необходимо. Код движка на lua занимает всего ~900 строк и лучшей документацией, конечно, является изучение его кода.
|
Код игр для STEAD пишется на lua (5.1), поэтому, знание этого языка полезно, хотя и не необходимо. Код движка на lua занимает около ~2000 строк и лучшей документацией является изучение его кода.
|
||||||
|
|
||||||
Главное окно игры содержит информацию о статической и динамической части сцены, активные события и картинку сцены с возможными переходами в другие сцены (в графическом интерпретаторе).
|
Главное окно игры содержит информацию о статической и динамической части сцены, активные события и картинку сцены с возможными переходами в другие сцены (в графическом интерпретаторе).
|
||||||
|
|
||||||
|
@ -692,6 +692,12 @@ knife = obj {
|
||||||
nam = 'Нож'..img('img/knife.png'),
|
nam = 'Нож'..img('img/knife.png'),
|
||||||
}
|
}
|
||||||
}}}
|
}}}
|
||||||
|
|
||||||
|
Начиная с версии 1.0.0 интерпретатор может обрабатывать составные картинки, например:
|
||||||
|
{{{
|
||||||
|
pic = 'gfx/mycat.png';gfx/milk.png@120,25;gfx/fish.png@32,32'
|
||||||
|
}}}
|
||||||
|
|
||||||
Интерпретатор проигрывает в цикле текущую музыку, которая задается с помощью функции:
|
Интерпретатор проигрывает в цикле текущую музыку, которая задается с помощью функции:
|
||||||
set_music(имя музыкального файла).
|
set_music(имя музыкального файла).
|
||||||
|
|
||||||
|
|
Reference in a new issue