Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
leafi committed Apr 2, 2015
1 parent 4297e6a commit 25b5ae7
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# love-eclipse-ldt

LOVE2D Eclipse LDT Execution Environment. That means you get autocomplete and all that.

This repository is the contents of a .zip file you could feed into Eclipse LDT.

# Pre-built

(I'll get the link sorted in a minute...)

1. Grab that .zip above
2. Start a new Lua project in the https://eclipse.org/ldt/ Eclipse LDT
3. Under 'Targeted Execution Environment' in the new project options, click Configure Execution Environments...
4. Click Add...
5. Browse to the .zip file you downloaded
6. Just use that, basically. It should work. Open an Issue if it doesn't!

# Building it yourself

The api.zip is built using https://github.com/leafi/love-api-to-ldt-luadoc, a tool which *itself* takes the LOVE2D API definitions from https://github.com/rm-code/love-api. Phew!

1. Go to https://github.com/leafi/love-api-to-ldt-luadoc and follow the instructions in the README - carefully.
2. With those instructions thoroughly followed, you now find yourself with an api.zip file.
3. Download the contents of *this* repository, and replace api.zip with the one you made.
4. In the love-eclipse-ldt folder, zip everything. You must be INSIDE the folder. The top-level of the .zip should be .rockspec, api.zip and all that - no love-eclipse-ldt folder in sight!
5. Follow the 'Pre-built' instructions above from step 2 onwards to install the bugger.

# Issues

Current TODOs:

* utf8 Lua module missing - tell me where to find a definition file and I'll stuff it in.
* No object functions/enum definitions. So yes autocomplete for love.window.getWidth(), no autocomplete for love.image.newImageData():getWidth().

The latter is my next task.

# Credits

Original Koneki (pre-LDT) API files: https://github.com/mkosler/LOVELuaDoc

And https://github.com/rm-code/love-api/ is the definition set we produce api.zip from nowadays.

0 comments on commit 25b5ae7

Please sign in to comment.