Black Screen.[Solved]

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Thief3
Prole
Posts: 5
Joined: Tue Oct 11, 2011 2:26 pm

Re: Black Screen.[Solved]

Post 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.
User avatar
slime
Solid Snayke
Posts: 3170
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Black Screen.[Solved]

Post 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.
User avatar
Taehl
Dreaming in associative arrays
Posts: 1025
Joined: Mon Jan 11, 2010 5:07 am
Location: CA, USA
Contact:

Re: Black Screen.[Solved]

Post 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.
Earliest Love2D supporter who can't Love anymore. Let me disable pixel shaders if I don't use them, dammit!
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Black Screen.

Post 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.
When I write def I mean function.
User avatar
tentus
Inner party member
Posts: 1060
Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:

Re: Black Screen.

Post 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.
Kurosuke needs beta testers
User avatar
slime
Solid Snayke
Posts: 3170
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Black Screen.[Solved]

Post 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.
User avatar
Taehl
Dreaming in associative arrays
Posts: 1025
Joined: Mon Jan 11, 2010 5:07 am
Location: CA, USA
Contact:

Re: Black Screen.[Solved]

Post 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)
Earliest Love2D supporter who can't Love anymore. Let me disable pixel shaders if I don't use them, dammit!
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Black Screen.[Solved]

Post by Robin »

I'm sorry to crash your party, but could we close this thread? The problem OP had is solved, end of story.
Help us help you: attach a .love.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests