Haha, the title of this thread rhymes
Anyway, what do I need to know about the changes in .6? Just the major ones, I don't need to know any minute details. Thanks!
--Nic
Making the switch to .6?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- beatthelastboss
- Citizen
- Posts: 63
- Joined: Wed Dec 09, 2009 10:50 pm
- Location: Jacksonville, Florida, USA
Making the switch to .6?
IN SOVIET RUSSIA, LUA CODES IN YOU!!
Re: Making the switch to .6?
Constants
No more love.key_a!
Just use "a", "escape", "lshift", et.c.!
Main callbacks
The main callbacks are now in the love table, e.g. love.load() instead of load()
love.system is gone!
not sure what to say about this
love.filesystem is now 100% more Lua-ish!
You can't handle these docs!
that's about it afaik.
No more love.key_a!
Just use "a", "escape", "lshift", et.c.!
Main callbacks
The main callbacks are now in the love table, e.g. love.load() instead of load()
love.system is gone!
not sure what to say about this
love.filesystem is now 100% more Lua-ish!
You can't handle these docs!
that's about it afaik.
Re: Making the switch to .6?
game.conf is now conf.lua and it looks different/has more options
http://love2d.org/potato/conf_lua.html
now use print instead of draw for text
http://love2d.org/potato/conf_lua.html
now use print instead of draw for text
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Making the switch to .6?
Or, more precise: love.graphics.print() for text instad of love.graphics.draw().Almost wrote:now use print instead of draw for text
Help us help you: attach a .love.
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: Making the switch to .6?
Another thing to note about .6 is that your print() calls will place the stdout.txt file on a different folder than the one where the love.exe is... however I don't know where that is.
Does anyone know this? I'm using windows atm, but it would be nice to know the file location on win, lin & mac.
Does anyone know this? I'm using windows atm, but it would be nice to know the file location on win, lin & mac.
When I write def I mean function.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Making the switch to .6?
Linux and mac never had an stdout.txt and windows stopped having it too IIRC, however, there is a new option for the conf, namely console, if that is set to true you'll get yourself a console window showing the output (on windows)
Re: Making the switch to .6?
the outputs where nice, and because other systems didn't have it its no reason to remove it from windows. i found it very handy.. im using the console thing now and its just as good. dont remove it please?
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Making the switch to .6?
Actually, the other systems do have the output, but on Windows LÖVE had to use those files as a kludge.Pliskin09 wrote:the outputs where nice, and because other systems didn't have it its no reason to remove it from windows.
Help us help you: attach a .love.
Re: Making the switch to .6?
Hi,
I have 2 short questions about 0.6, decided to post them here as it's kind of related...
Is love.run redefinable? I seen it in wiki, but not in documentation, does it mean it was planned and not got into 0.6, or wasn't documented yet, or I just didn't noticed it in potato?
Second is about config file... docs says:so for example what should be there to say that game was made for 0.6.1? Docs says number and default is 0, should it be string "0.6.1", number 0.61, or maybe that way is only for 0.6 branch and the version should be specified as just number 1?
Thanks in advance for clarification on those!
I have 2 short questions about 0.6, decided to post them here as it's kind of related...
Is love.run redefinable? I seen it in wiki, but not in documentation, does it mean it was planned and not got into 0.6, or wasn't documented yet, or I just didn't noticed it in potato?
Second is about config file... docs says:
Code: Select all
t.version = 0 -- The L�VE version this game was made for (number)
Thanks in advance for clarification on those!
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Making the switch to .6?
Hi.giniu wrote:Hi,
Yes. Just do:giniu wrote:Is love.run redefinable?
Code: Select all
function love.run()
(... your code here ...)
end
I think you would do 061 in that case, that's how love._version (or what was it called again?) works.giniu wrote:Second is about config file... docs says:so for example what should be there to say that game was made for 0.6.1?Code: Select all
t.version = 0 -- The L�VE version this game was made for (number)
Help us help you: attach a .love.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 3 guests