GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - perbone/luascript: Lua language support for Godot Engine

BranchesTags
Open more actions menu

Latest commit

 

History

361 Commits
361 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
doc_classes
doc_classes
 
 
editor
editor
 
 
icons
icons
 
 
lib
lib
 
 
parser
parser
 
 
.clang-format
.clang-format
 
 
.clang-tidy
.clang-tidy
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
Lua.g4
Lua.g4
 
 
README.md
README.md
 
 
SCsub
SCsub
 
 
config.py
config.py
 
 
constants.h
constants.h
 
 
debug.cpp
debug.cpp
 
 
debug.h
debug.h
 
 
lua_script.cpp
lua_script.cpp
 
 
lua_script.h
lua_script.h
 
 
lua_script_instance.cpp
lua_script_instance.cpp
 
 
lua_script_instance.h
lua_script_instance.h
 
 
lua_script_language.cpp
lua_script_language.cpp
 
 
lua_script_language.h
lua_script_language.h
 
 
lua_script_resource_formate_loader.cpp
lua_script_resource_formate_loader.cpp
 
 
lua_script_resource_formate_loader.h
lua_script_resource_formate_loader.h
 
 
lua_script_resource_formate_saver.cpp
lua_script_resource_formate_saver.cpp
 
 
lua_script_resource_formate_saver.h
lua_script_resource_formate_saver.h
 
 
register_types.cpp
register_types.cpp
 
 
register_types.h
register_types.h
 
 

Repository files navigation

LuaScript License

Lua 5.4 language support for Godot Engine 4.x

WIP (heavily updated so you can expect constants changes - no commitment with feature freezing at this moment)

Current progress:

  • The new parser using Antlr4 is up and running. Now comes the construction of the AST and the static analyzer.

Warning!! Kindly note that the git tag 3.x exists only for historical reasons, and although it compiles it is unfinished. So please do not open issues nor send PR for this tag. Appreciate the understanding.

Features

  • Full Godot's gameplay API implementation (feature complete on par with GDScript)
  • Configurable API sandbox
  • Object Oriented Programming based on Lua's tables and metatables
  • Support for inheritance from Lua base class and file
  • Support for inheritance from native base class and file
  • Support for properties
    • Getters, setters and default values
    • Editing properties values in the property editor
  • Support for signals
    • Signal connect, emit and receive from code
    • Signal connect from the editor (currently not well supported by Godot)
  • Lua language coding in Godot's built in editor
    • On the fly source code linting and static analysis
    • On the fly source code syntax highlighting
    • Source code beautifier
      • Format the entire active file
      • Format the selected text
      • Format automatically when saving
    • Source code refactoring (currently not supported by Godot)
    • Code editor color theme (Icemoon)
  • Lua language coding in external editor (possibly with the same capabilities as the built in editor)
  • Support for multiple Lua runtimes (PUC Rio Lua 5.4 and LuaJIT)
  • Debugging tools (possibly with all Godot's debugging capabilities)
  • Tool creation to extend the built in editor functionalities
  • Support for advanced package assembling
    • Dead code elimination throught tree-shaking
    • Code uglifier and minifier
    • Compilation into binary bytecode
    • Compression or encryption
  • Export for all Godot's supported platforms

How to Build

My development environment is based primarily on Linux and Mac so I don't know if it will work on Windows. Shouldn't be a problem though as I'm only making use of standard C++17 code and the available Godot C++ API. If you experience any problem when building on Windows please report an issue and I'll be glad to work on solving it.

So first of all you have to have Godot successfully built in your system, which is beyond the scope of this simple how to.

Now, assuming you can git clone from GitHub, just clone LuaScript into Godot's source code 'modules' folder and then, build Godot again adding to the command line the following options

module_luascript_enabled=yes

If everything has gone well, you'll have a running Godot with Lua support!

Keep watching the development as I'm slowly but steadly adding more features.

Have fun!

Issues and Support

Have a bug? Please create an issue here on GitHub!

https://github.com/perbone/luascript/issues

Versioning

For transparency and insight into our release cycle, releases are be numbered with the semantic versioning format: <major>.<minor>.<patch> and constructed with the following guidelines:

  • Breaking backwards compatibility bumps the major
  • New additions without breaking backwards compatibility bumps the minor
  • Bug fixes and misc changes bump the patch

Contributors

  • Paulo Perbone (@perbone)

License

Copyright 2017-2024 Paulo Perbone

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License

About

Lua language support for Godot Engine

Topics

apache2cppgame-developmentgame-enginegamedevgodotgodot-enginegodotenginelualua-scriptlua-supportluascriptopen-source

Resources

Readme
Apache-2.0 license
Activity

Stars

703 stars

Watchers

29 watching

Forks

51 forks
Report repository

Sponsor this project

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.