-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
28 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
---@meta | ||
|
||
---@class lilka | ||
---@field show_fps boolean Показувати частоту кадрів на екрані, якщо встановлено в ``true``. Наприклад: ``lilka.show_fps = true`` | ||
lilka = {} | ||
|
||
---Ця функція автоматично викликається один раз при запуску програми. | ||
--- | ||
---Ви повинні визначити її в своєму коді, якщо ви хочете використовувати її для ініціалізації вашої програми. | ||
---lilka.init fun() | ||
---@alias lilka.init fun() | ||
|
||
---Ця функція автоматично викликається кожен кадр. Тут виконується ігрова логіка. В параметрі delta передається час, який пройшов з останнього кадру. | ||
--- | ||
---Ви повинні визначити її в своєму коді, якщо ви хочете використовувати її для оновлення вашої програми. | ||
---lilka.update fun(delta: number) | ||
---@alias lilka.update fun(delta: number) | ||
|
||
---Ця функція автоматично викликається після `lilka.update`. Тут відбувається відображення графіки. | ||
--- | ||
---Ви повинні визначити її в своєму коді, якщо ви хочете використовувати її для малювання вашої програми. | ||
---lilka.render fun() | ||
---@alias lilka.render fun() | ||
|
||
return lilka |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters