Skip to content

ajakilas/liblgd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

liblgd

Lib for making gd levels, inspired by SPWN and G.js

Example

local liblgd = require("liblgd")

local obj = liblgd.obj
local trg = liblgd.trg
local main = liblgd.main
local build = liblgd.build

main(function()
    obj.add{id=1, x=90, y=45}:group(1)

    trg.move{x=-30, y=75, mX=-30, mY=0, time=0.2, group=1}:spawn():group(2)
    trg.touch{x=-30, y=105, only="p1", group=2}

    trg.move{x=-60, y=75, mX=30, mY=0, time=0.2, group=1}:spawn():group(3)
    trg.touch{x=-60, y=105, only="p2", group=3}
end)

build("dual_touch_test.gmd")

Install

Via Luarocks

$ luarocks install --server=https://luarocks.org/dev liblgd

About

Lib for making gd levels, inspired by SPWN and G.js

Resources

License

Stars

Watchers

Forks

Contributors

Languages