Page 2 of 2

Re: Black Screen.[Solved]

Posted: Tue Oct 11, 2011 7:13 pm
by Thief3
Yeah Vector::size() does work and I knew about the 'if not foo then' and its reverse ( seems like the only thing I know in Lua ) I just prefer if foo==false then.Also for games does OOP in Love give any advantages over functional or procedural programming other than reusability.

Re: Black Screen.[Solved]

Posted: Tue Oct 11, 2011 8:26 pm
by slime
Thief3 wrote:Also for games does OOP in Love give any advantages over functional or procedural programming other than reusability.
You'd end up writing thousands of lines of code rather than dozens with a procedural approach versus an object oriented one.

Re: Black Screen.[Solved]

Posted: Tue Oct 11, 2011 9:13 pm
by Taehl
slime wrote:You'd end up writing thousands of lines of code rather than dozens with a procedural approach versus an object oriented one.
I respectfully disagree. I normally use a procedural style, and I'd say you end up with three times as many lines at most. But if you design it carefully, you may be able to have higher performance.

Re: Black Screen.

Posted: Tue Oct 11, 2011 9:14 pm
by kikito
T-Bone wrote:And use tabs instead of spaces, if you don't already.
My God tells me that indenting using Two Spaces Per Level is the One True Way, and all the other forms of indentation are heresy.

Now seriously, the important thing is not that you use tabs or spaces, but that you are consistent and systematic.

Re: Black Screen.

Posted: Tue Oct 11, 2011 9:16 pm
by tentus
kikito wrote:
T-Bone wrote:And use tabs instead of spaces, if you don't already.
My God tells me that indenting using Two Spaces Per Level is the One True Way, and all the other forms of indentation are heresy.

Now seriously, the important thing is not that you use tabs or spaces, but that you are consistent and systematic.
Deus Ex: Invisible War was actually about the conflict between Tabbists and Spacers.

Re: Black Screen.[Solved]

Posted: Tue Oct 11, 2011 9:18 pm
by slime
Taehl wrote:
slime wrote:You'd end up writing thousands of lines of code rather than dozens with a procedural approach versus an object oriented one.
I respectfully disagree. I normally use a procedural style, and I'd say you end up with three times as many lines at most. But if you design it carefully, you may be able to have higher performance.
I'm willing to bet that you're either actually using a somewhat object-oriented approach, or your games are small enough that it doesn't matter.

Re: Black Screen.[Solved]

Posted: Tue Oct 11, 2011 9:59 pm
by Taehl
slime wrote:I'm willing to bet that you're either actually using a somewhat object-oriented approach, or your games are small enough that it doesn't matter.
How much are you willing to bet? You may want to go look at the code of any (or, uh, /every/) game I've ever released before you give me a number. (Hint: You'll probably find less than 20 colons in the code of all of them put together)

Re: Black Screen.[Solved]

Posted: Tue Oct 11, 2011 10:01 pm
by Robin
I'm sorry to crash your party, but could we close this thread? The problem OP had is solved, end of story.