Black Screen.[Solved]
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Black Screen.[Solved]
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.
- slime
- Solid Snayke
- Posts: 3170
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Black Screen.[Solved]
You'd end up writing thousands of lines of code rather than dozens with a procedural approach versus an object oriented one.Thief3 wrote:Also for games does OOP in Love give any advantages over functional or procedural programming other than reusability.
- Taehl
- Dreaming in associative arrays
- Posts: 1025
- Joined: Mon Jan 11, 2010 5:07 am
- Location: CA, USA
- Contact:
Re: Black Screen.[Solved]
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.slime wrote:You'd end up writing thousands of lines of code rather than dozens with a procedural approach versus an object oriented one.
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+.
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: Black Screen.
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.T-Bone wrote:And use tabs instead of spaces, if you don't already.
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.
- tentus
- Inner party member
- Posts: 1060
- Joined: Sun Oct 31, 2010 7:56 pm
- Location: Appalachia
- Contact:
Re: Black Screen.
Deus Ex: Invisible War was actually about the conflict between Tabbists and Spacers.kikito wrote: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.T-Bone wrote:And use tabs instead of spaces, if you don't already.
Now seriously, the important thing is not that you use tabs or spaces, but that you are consistent and systematic.
Kurosuke needs beta testers
- slime
- Solid Snayke
- Posts: 3170
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Black Screen.[Solved]
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.Taehl wrote: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.slime wrote:You'd end up writing thousands of lines of code rather than dozens with a procedural approach versus an object oriented one.
- Taehl
- Dreaming in associative arrays
- Posts: 1025
- Joined: Mon Jan 11, 2010 5:07 am
- Location: CA, USA
- Contact:
Re: Black Screen.[Solved]
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)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.
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+.
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Black Screen.[Solved]
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.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 6 guests