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

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
hagish
Citizen
Posts: 85
Joined: Thu May 01, 2008 12:51 pm
Contact:

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

Post 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 :)
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

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

Post by bartbes »

Great, you reached the forums.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

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

Post 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 389 times
EDIT: also, love.graphics.draw() should look for strings and call love.graphics.print() if appropriate.
User avatar
Luiji
Party member
Posts: 396
Joined: Mon May 17, 2010 6:59 pm

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

Post 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.
User avatar
hagish
Citizen
Posts: 85
Joined: Thu May 01, 2008 12:51 pm
Contact:

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

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

Who is online

Users browsing this forum: No registered users and 67 guests