Search found 83 matches

by clickrush
Mon Dec 26, 2011 2:12 pm
Forum: Games and Creations
Topic: Demo - tile, cell based world (with collision)
Replies: 13
Views: 2370

Re: Demo - tile, cell based world (with collision)

wandering in and out of the infinite floor is a psychedelic experience! Everything in this program is beautiful. thx for sharing :)

The most usefull thing to implement from my point of view would be a minimap that also shows on which level you are. you could make a layered minmap or something idk.
by clickrush
Mon Dec 26, 2011 1:56 pm
Forum: General
Topic: Any drawing of a image from file results in a whit box?
Replies: 10
Views: 1706

Re: Any drawing of a image from file results in a whit box?

oh, so each side of the image should be a multiple of 2 then? each side should be a power of two: 2,4,8,16,32,64... It does not have to be this problem though. It could also be because of love.graphics.setColor(255,255,255) it also overwrites images. I use: love.graphics.reset in this case before I...
by clickrush
Mon Dec 26, 2011 1:21 pm
Forum: General
Topic: Programming Paradigms and Lua/LÖVE
Replies: 18
Views: 4037

Re: Programming Paradigms and Lua/LÖVE

I want to thank all you guys for your answers. So far I understand better when and why to use OO and I get now what functional programming actually means. As for functionoal programming I see a very nice application for it: Since they have to be mathematically true, they become completely harmless e...
by clickrush
Sun Dec 25, 2011 10:27 pm
Forum: General
Topic: Programming Paradigms and Lua/LÖVE
Replies: 18
Views: 4037

Re: Programming Paradigms and Lua/LÖVE

thank you kikito, your response helped me to understand OO in lua a tad better. Especially the comment with "hidden" classes opened a knot in my brain that I struggled with. I can see the OO approach in lua much more fluent which is a huge relief. Just a quick question: when I organise my code into ...
by clickrush
Sun Dec 25, 2011 9:12 pm
Forum: General
Topic: Programming Paradigms and Lua/LÖVE
Replies: 18
Views: 4037

Re: Programming Paradigms and Lua/LÖVE

just a quick: thank you very much!. This hint is exactly what iam searching for and is very encouraging. Apparently one of the core concepts of functional programming is using first class functions which lua provides. Also the skeleton of LÖVE is just functions so this might weave well into it. I'am...
by clickrush
Sun Dec 25, 2011 5:24 pm
Forum: General
Topic: Programming Paradigms and Lua/LÖVE
Replies: 18
Views: 4037

Re: Programming Paradigms and Lua/LÖVE

So what you're saying is that I have to find my own belief? :shock: ok that is gonna be fun: I believe in science and federalism. I believe that rightfulness is found in order with minimal hierarchy, as long as the beings or groups in that system seek for truth in a scientific way. translating this ...
by clickrush
Sun Dec 25, 2011 3:54 pm
Forum: General
Topic: Programming Paradigms and Lua/LÖVE
Replies: 18
Views: 4037

Programming Paradigms and Lua/LÖVE

Ok I'am starting to understand OOP's concepts and it's usefulness, so I want to have a little discussion about this and any other styles that you guys use and why. Let us start with a survey kind of thing: 1. What I don't grasp yet is the need of classes. In PiL it says that OOP in Lua can be done w...
by clickrush
Sun Dec 25, 2011 3:20 pm
Forum: Support and Development
Topic: Compiling?
Replies: 20
Views: 6091

Re: Compiling?

This is how a free software fanatic would read this thread: carlman:"Hey guys, I know you don't like evilness but can I make LÖVE evil?" lovers:"No you can't make LÖVE evil but you can threaten people who want to use it in a good way!" qrux:"Thanks this is clever lol." No offense to anyone I just fo...
by clickrush
Sun Dec 25, 2011 3:05 pm
Forum: Support and Development
Topic: Find 2 closest bodies to a body
Replies: 6
Views: 723

Re: Find 2 closest bodies to a body

Just for the sake of understanding this I want to continue the discussion if that is ok with the OP. According to the Reference Manual: Sorts table elements in a given order, in-place, from table[1] to table[n], where n is the length of the table. If comp is given, then it must be a function that re...
by clickrush
Sun Dec 25, 2011 12:39 pm
Forum: Support and Development
Topic: Find 2 closest bodies to a body
Replies: 6
Views: 723

Re: Find 2 closest bodies to a body

It could be because you have table.sort and everything below that in the loop. I dont see why you do that anyways.