Code Monkey home page Code Monkey logo

lemur's Introduction

Lemur

Lua Emulation of Roblox APIs
ย 

Lemur reimplements a large portion of Roblox's API in Lua in order to enable Roblox projects to have continuous integration using services like Travis CI or Jenkins.

Lemur aims to be a fairly complete and up-to-date implementation of Roblox's API, however:

  • Lemur will always be incomplete by nature
  • Lemur will not implement deprecated APIs for the sake of simplicity
  • Lemur is naturally restricted by the environment it runs in

Current feature coverage is detailed in FEATURES.md

Installation

Lemur requires:

  • Lua 5.1 or LuaJIT
    • ./?/init.lua should be in your LUA_PATH. This is the default in some, but not all, installations.
  • LuaFileSystem (luarocks install luafilesystem)

Lemur needs certain extra dependencies for some optional features:

  • dkjson (Roblox JSON API) (luarocks install dkjson)
  • LuaSocket (high performance timer) (luarocks install luasocket)
  • bit32 (Lua 5.1 bit32 implementation) (luarocks install bit32)

Clone the Git repository wherever, then call require on it.

Usage

To use Lemur, create a Habitat and load pieces of the filesystem into the tree:

local lemur = require("lemur")

-- Create a Habitat
local habitat = lemur.Habitat.new()
local ReplicatedStorage = habitat.game:GetService("ReplicatedStorage")

-- Load `src/roblox` as a Folder containing some ModuleScripts:
local root = habitat:loadFromFs("src/roblox")
root.Parent = ReplicatedStorage

-- Locate src/roblox/CoolModule.lua from inside the habitat and load it!
local CoolModule = habitat:require(root.CoolModule)

-- Invoke a method on our Roblox module!
CoolModule.doSomething()

Contributing

If there are any APIs you'd like that are missing, feel free to open an issue on GitHub!

License

Lemur is available under the MIT license. See LICENSE.md for details.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.