General discussion about LÖVE, Lua, game development, puns, and unicorns.
OttoRobba
Party member
Posts: 104 Joined: Mon Jan 06, 2014 5:02 am
Location: Sao Paulo, Brazil
Post
by OttoRobba » Wed Jan 08, 2014 12:34 am
Newest build: 2014-13-01
Fixed a glaring mistake with the keyboard snippets, they were love.image instead of love.keyboard. Oops.
GËL is an advanced LÖVE snippet system along with syntax highlighting & custom commands for Gedit.
- Add brackets around selected code
Code: Select all
isGorgeous >> ({"['isGorgeous']"})
- Input functions & commands through shorthand and tab
Code: Select all
point + tab >> love.graphics.point(x, y)
- Edit functions by tabbing through them (dollar sign represent caret position)
Code: Select all
love.graphics.point($x, y) + tab >> love.graphics.point(x, $y)
- Helpful definitions that you can tab through when using snippets
Code: Select all
newquad + tab >> love.graphics.newQuad(x, y, width, height, width_of_the_image, height_of_the_image)
- View all of LÖVE's possible commands with:
- Run the game from Gedit with a shortcut
- Run the script using Lua from Gedit with a shortcut
- Search LÖVE's wiki in a browser from Gedit with a shortcut
Code: Select all
Select code >> Ctrl+Shift+F >> Wiki Search :D
- Proper LÖVE syntax highlighting
Now available on
Github!
There is bound to be bugs and better ways to do things so be sure to report things and whatnot
Last edited by
OttoRobba on Mon Jan 13, 2014 9:11 pm, edited 3 times in total.
T-Bone
Inner party member
Posts: 1492 Joined: Thu Jun 09, 2011 9:03 am
Post
by T-Bone » Fri Jan 10, 2014 8:30 pm
That looks really nice. I've done a lot of LÖVE coding in Gedit and this seems like it could be really helpful.
Germanunkol
Party member
Posts: 712 Joined: Fri Jun 22, 2012 4:54 pm
Contact:
Post
by Germanunkol » Sat Jan 11, 2014 2:29 pm
Nice work!
I was looking for something like this a few months back..
OttoRobba
Party member
Posts: 104 Joined: Mon Jan 06, 2014 5:02 am
Location: Sao Paulo, Brazil
Post
by OttoRobba » Sun Jan 12, 2014 1:22 am
Glad to know it is helpful folks
Fixed some indentation and whatnot a couple of days ago, if you downloaded it before that, I recommend cleaning the snippets related to Lua and re-importing them. I'll find a way to make it more streamlined in the future
bekey
Party member
Posts: 255 Joined: Tue Sep 03, 2013 6:27 pm
Post
by bekey » Mon Jan 13, 2014 11:46 am
-snip-
Last edited by
bekey on Fri Jan 24, 2014 1:45 am, edited 3 times in total.
OttoRobba
Party member
Posts: 104 Joined: Mon Jan 06, 2014 5:02 am
Location: Sao Paulo, Brazil
Post
by OttoRobba » Mon Jan 13, 2014 12:41 pm
Aye, that is true. I think it is the same with OSX? Not sure.
I'll also have to check where to store the lua.lang file in those two platforms as well.
The brackets shortcuts along with the snippets should all work with all platforms though
Glad this is helpful
OttoRobba
Party member
Posts: 104 Joined: Mon Jan 06, 2014 5:02 am
Location: Sao Paulo, Brazil
Post
by OttoRobba » Mon Jan 13, 2014 11:25 pm
Updated the snippets collection today. I went ahead and removed every single exception, I now leave it to the user and Gedit's default tool behaviour to select what is best. Basically, if a conflict between snippets exist, just use Ctrl+Spacebar and select the one you wanted.
This behaviour is more consistent, easier to remember and works better with Gedit's plugin. Hooray!
I'm thinking of adding a few "skeleton" snippets, things like common keyboard input (like wasd/arrow keys). Do you guys have any good ideas for skeleton functions?
Users browsing this forum: Semrush [Bot] and 13 guests