I started a new public branch for the 0.10.0 update - contributions are welcome!
https://github.com/rm-code/love-api/tre ... 0.0-update
https://github.com/rm-code/love-api/issues/8
LÖVE-API Documentation (as a lua table)
Re: LÖVE-API Documentation (as a lua table)
Small heads-up about a change in structure: I decided to move all enums and types to separate files (makes it a bit easier for me to keep the whole thing up to date). You should still be able to use the API as before though.
The structure looks like this now:
The structure looks like this now:
Code: Select all
love_api.lua
> modules
> audio
audio.lua
> enums
DistanceModel.lua
...
> types
Source.lua
> event
> filesystem
...
Re: LÖVE-API Documentation (as a lua table)
May I suggest that instead of structuring things like
you put the main files as init.lua?
or something like that. At least I find it weird that modules.keyboard.Keyboard exists.
Code: Select all
modules.keyboard.Keyboard
modules.keyboard.enums.KeyConstant
Code: Select all
modules.keyboard (modules/keyboard/init.lua) requires
modules.keyboard.enums (modules/keyboard/enums/init.lua) returns
modules.keyboard.enums.KeyConstant
Re: LÖVE-API Documentation (as a lua table)
True, but it's just a simple way of structuring the whole thing. Personally I don't really mind since the require statements are just needed inside of the doc itself.S0lll0s wrote:At least I find it weird that modules.keyboard.Keyboard exists.
Hmm ... Unless you want to require them on their own for some reason?
Anyway I'd be open for a pull request
Re: LÖVE-API Documentation (as a lua table)
I'll put something together tomorrow if I remember to...rmcode wrote:True, but it's just a simple way of structuring the whole thing. Personally I don't really mind since the require statements are just needed inside of the doc itself.S0lll0s wrote:At least I find it weird that modules.keyboard.Keyboard exists.
Hmm ... Unless you want to require them on their own for some reason?
Anyway I'd be open for a pull request
Re: LÖVE-API Documentation (as a lua table)
Thanks to rmcode and contributors I've been able to update my one-page reference to 0.10.0. Edit: New location: http://love2d-community.github.io/love-api/
Last edited by Santos on Fri Feb 19, 2016 2:47 am, edited 1 time in total.
Re: LÖVE-API Documentation (as a lua table)
Very niceSantos wrote:Thanks to rmcode and contributors I've been able to update my one-page reference to 0.10.0: http://loveref.github.io/
I finally added travis-ci integration to check the integrity of the api-table (missing brackets, old require statements, etc.). I use busted for testing.
Currently the test is really simple:
Code: Select all
describe( 'LÖVE-API Integrity test', function()
it( 'makes sure the api table is valid', function()
local api = require( 'love_api' )
assert( api )
end)
end)
Re: LÖVE-API Documentation (as a lua table)
The api has been transferred to the LÖVE organisation on github.
Re: LÖVE-API Documentation (as a lua table)
Nice! Updating the list of libraries to reflect that would be a good idea.
Who is online
Users browsing this forum: Bing [Bot] and 0 guests