Search found 76 matches

by subrime
Fri Jan 16, 2009 5:54 am
Forum: Support and Development
Topic: Tables
Replies: 14
Views: 12752

Re: Tables

The people designing tables in lua were not idiots. Your problem is in thinking of them like an indexed chunk of memory (like in c) when they are actually much more sophisticated. Lua implements associative arrays , meaning the keys are not restricted to consecutive integers starting at zero - they ...
by subrime
Wed Jan 14, 2009 3:01 am
Forum: General
Topic: API Wars
Replies: 39
Views: 25434

Re: API Wars

I agree with appleide - lua is more than flexible enough to accommodate any oo urges you might be harbouring, but it shouldn't be force on everyone for no good reason. Regarding radians (which I prefer), what about a love function that switches everything to one or the other? Config options are too ...
by subrime
Sun Jan 11, 2009 4:04 pm
Forum: General
Topic: Suggestion: Implementing cuda support into love?
Replies: 13
Views: 12068

Re: Suggestion: Implementing cuda support into love?

You know, that crazy communist hacker who made the Linus and infected it with the GPL virus to destroy America! Well I read on the internets that he's hiding in Finland - probably cause it's the only place he can trick people since nobody there speaks english. The only way to be safe is if Microsoft...
by subrime
Fri Jan 09, 2009 12:32 am
Forum: General
Topic: Suggestion: Implementing cuda support into love?
Replies: 13
Views: 12068

Re: Suggestion: Implementing cuda support into love?

That's a great idea! And it will really encourage all those people who are reluctant to upgrade to a Microsoft Vista ME 7 system... I'm getting a little frustrated the way those Linus users keep holding us back just because they want to save a few dollars (or whatever passes for money in Finland).
by subrime
Sat Dec 13, 2008 3:46 pm
Forum: Support and Development
Topic: love.filesystem.getWorkingDirectory( ) issue with linux?
Replies: 2
Views: 1697

Re: love.filesystem.getWorkingDirectory( ) issue with linux?

I could be wrong, but I think the idea is sandboxing ... the game really shouldn't be messing with anything but its own files (which should all be bundled in one spot), so even though the subfolders are in your personal directory inside /home, love presents the picture as if the love package is the ...
by subrime
Sun Dec 07, 2008 9:50 am
Forum: Support and Development
Topic: Inefficiencies with loading data
Replies: 8
Views: 6171

Re: Inefficiencies with loading data

In general (for lua) if you want to 'free up' memory that you don't need anymore, you assign nil to the variable. eg: file=io.open('love_manual') -- file is just a way to specify your io source text=file:read('*a') -- put the contents of file into text... this chews up memory file:close() -- done wi...
by subrime
Fri Dec 05, 2008 5:55 am
Forum: Support and Development
Topic: Fonts!
Replies: 7
Views: 6134

Re: Fonts!

It is quite possible to rotate about "a different point" as follows: love.graphics.rotate(angle,centrex,centrey) -- in keeping with the current api c + opengl implementation: static int fancy_rotate(lua_State *s) { float x,y,r; if (lua_gettop(s)>2 && lua_isnumber(s,1) && lu...
by subrime
Sun Nov 30, 2008 4:15 am
Forum: Support and Development
Topic: Vector Graphics in Love
Replies: 4
Views: 2816

Re: Vector Graphics in Love

Wrapping cairo is a fairly straight forward way to put vector graphics at your disposal.
by subrime
Sun Nov 30, 2008 3:32 am
Forum: Support and Development
Topic: is there anyway to save an image to a file?
Replies: 11
Views: 9083

module code attached

Fear not! While it is written in c this is a lua module, so after unzipping it things are just as easy as working with love. On a linux system you might do something like this: tar -xzf imagemod-0.1.0.tar.gz cd imagemod make This will build it and I hope it will work on any standard linux install th...
by subrime
Sat Nov 29, 2008 7:40 pm
Forum: Support and Development
Topic: is there anyway to save an image to a file?
Replies: 11
Views: 9083

Re: is there anyway to save an image to a file?

I can only make linux-PPC32 binaries, and since I've never met anyone else running linux on this hardware a source blob looks like the way to go...

What is the best way to get it to you, osgeld?