Page 1 of 1

Adult Lib - run old Löve code with the current Löve version

Posted: Fri Jun 04, 2010 1:03 pm
by hagish
Here is the original post: http://forum.freegamedev.net/viewtopic. ... 363&p=4193

A small lib to run old löve code with the current version. Currently it only supports
0.5 -> 0.6.2.

You can find it under: http://ghoulsblade.schattenkind.net/files/adult.lua

How to use:
* Take your 0.5 code and include adult in the first line of your main.lua
* Then call adult.grow ("0.5")
* If you are lucky enough you will see your game :)

Re: Adult Lib - run old Löve code with the current Löve vers

Posted: Fri Jun 04, 2010 1:10 pm
by bartbes
Great, you reached the forums.

Re: Adult Lib - run old Löve code with the current Löve vers

Posted: Fri Jun 04, 2010 1:16 pm
by Robin

Code: Select all

love.default_font = {} -- "Vera Sans", but doesn't seem to work, so create unique object and detect in setfont
I'm pretty sure you mean love._vera_ttf instead of "Vera Sans"

Also, @everyone, if Adult Lib doesn't work for your game, you could try porting it with the help of hand-holder.lua:
hand-holder.lua
(9.59 KiB) Downloaded 404 times
EDIT: also, love.graphics.draw() should look for strings and call love.graphics.print() if appropriate.

Re: Adult Lib - run old Löve code with the current Löve vers

Posted: Fri Jun 04, 2010 3:47 pm
by Luiji
I think everybody should just port their code over. Adult Lib just gives people a way to be lazy coders. It is only good as a temporary solution, in my opinion.

Re: Adult Lib - run old Löve code with the current Löve vers

Posted: Sun Jun 06, 2010 12:01 am
by hagish
Yeah we were to lazy to port our code 5 times so we did it one time :)
But yes a maintained and active project should port the code but is is great to run old löve code without "rewriting" the hole project.