Introducing GËL (Beta) = Gedit + LÖVE

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
OttoRobba
Party member
Posts: 104
Joined: Mon Jan 06, 2014 5:02 am
Location: Sao Paulo, Brazil

Introducing GËL (Beta) = Gedit + LÖVE

Post by OttoRobba »

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:

Code: Select all

Ctrl+Spacebar

- Run the game from Gedit with a shortcut

Code: Select all

Ctrl+L 	>>  Your_Game :D

- Run the script using Lua from Gedit with a shortcut

Code: Select all

Shift+Ctrl+L 	>>  Lunar Power! :D

- 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.
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: Introducing GËL = Gedit + LÖVE

Post by T-Bone »

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:

Re: Introducing GËL = Gedit + LÖVE

Post by Germanunkol »

Nice work!

I was looking for something like this a few months back..
trAInsported - Write AI to control your trains
Bandana (Dev blog) - Platformer featuring an awesome little ninja by Micha and me
GridCars - Our jam entry for LD31
Germanunkol.de
User avatar
OttoRobba
Party member
Posts: 104
Joined: Mon Jan 06, 2014 5:02 am
Location: Sao Paulo, Brazil

Re: Introducing GËL = Gedit + LÖVE

Post by OttoRobba »

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 »

-snip-
Last edited by bekey on Fri Jan 24, 2014 1:45 am, edited 3 times in total.
User avatar
OttoRobba
Party member
Posts: 104
Joined: Mon Jan 06, 2014 5:02 am
Location: Sao Paulo, Brazil

Re: Introducing GËL = Gedit + LÖVE

Post by OttoRobba »

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 :D
User avatar
OttoRobba
Party member
Posts: 104
Joined: Mon Jan 06, 2014 5:02 am
Location: Sao Paulo, Brazil

Re: Introducing GËL (Beta) = Gedit + LÖVE

Post by OttoRobba »

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?
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 14 guests