-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lua #2043
base: master
Are you sure you want to change the base?
Lua #2043
Conversation
Hello @PieterVdc, what is this PR? It adds Lua scripting to KeeperFX instead of its own scripting language? |
not as a replacement, but yeah as a second level script, still in early stage, but on the discord I uploaded a sample map that uses it |
Why you have to bring |
indeed, but I started with just a quick draft test to get a quick idea of what would be needed, before doing it proper |
This reverts commit cd2b5f0.
lua/native.lua
Outdated
@@ -689,17 +699,13 @@ function MOVE_CREATURE() end | |||
---@param texture string The name or number of the texture to use for the player, like 'STONE_FACE'. Accepts 'None' or '-1'. | |||
function SET_TEXTURE(player,texture) end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not PLAYER0.set_texture('STONE_FACE')
?
lua/native.lua
Outdated
@@ -1,6 +1,6 @@ | |||
---@meta native | |||
|
|||
--file not used by the game, but used for telling the IDE about the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consider .editorconfig
(https://editorconfig.org/#file-format-details) so your editor will fix it for you
not final yet, but works, will probably use code as a dependency instead, but for now it uses a precompiled dll