Skip to content

A Lua-extension plugin for Bitty Engine.

License

Notifications You must be signed in to change notification settings

paladin-t/bitty.luax_plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Luax compiler plugin for Bitty Engine

This repository implements a custom compiler/transpiler plugin for Bitty Engine with an extended Lua syntex.

This plugin implements += and -= operators which the original Lua doesn't support.

local a = 0
for i = 1, 42 do
  a += 1 -- Extended operator "+=".
end
print(a)

for i = 1, 42 do
  a -= 1 -- Extended operator "-=".
end
print(a)

Seealso paladin-t/bitty.compiler_plugin for details.

Installing

  1. Clone or download this repository.
  2. Click "Project", "Browse Data Directory..." from the menu bar.
  3. Ensure there is a "plugins" directory under that directory.
  4. Put the "plugin.bit" into the new created "plugins" directory. And name it properly.
  5. Reopen Bitty Engine.

Injecting

  1. Create a new asset, select the registered "luax" type.
  2. Click "Install" to inject necessary assets to the target project.
  3. Write and run Luax code.

About

A Lua-extension plugin for Bitty Engine.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages