Search found 36 matches

by Bobbias
Fri Jul 26, 2013 7:52 am
Forum: General
Topic: [POLL] Do you like "then,do,end" or "{ }"?
Replies: 37
Views: 18393

Re: [POLL] Do you like "then,do,end" or "{ }"?

I'm fine with either. If I have an editor that indicates indentation level it doesn't really matter which one is used (provided the indentation is consistent).
by Bobbias
Thu Jul 25, 2013 7:27 am
Forum: Support and Development
Topic: Best practices for organizing inheritance with MiddleClass
Replies: 5
Views: 3824

Re: Best practices for organizing inheritance with MiddleCla

I avoided going for a class hierarchy by going for a simple component based entity system using FEZ which, while apparently abandoned, is still a great piece of code to work from. Not much documentation but it has nice clean code and a handy example that makes use of it's features (except changing h...
by Bobbias
Wed Jul 24, 2013 1:05 am
Forum: Support and Development
Topic: Fixing An Incorrectly Coded Drawing Function
Replies: 18
Views: 12671

Re: Fixing An Incorrectly Coded Drawing Function

Yeah, when you first begin learning to code, it's hard to understand how to get better at it. In fact, when you start anything, it's hard to pick out what things about something are important to look at in order to use them to improve, so you often end up thinking too much about unimportant or irrel...
by Bobbias
Mon Jul 22, 2013 11:07 pm
Forum: Support and Development
Topic: Fixing An Incorrectly Coded Drawing Function
Replies: 18
Views: 12671

Re: Fixing An Incorrectly Coded Drawing Function

It's not a big deal. I hope I didn't come off as too harsh. It took me a good while to really grasp some of the same ideas when I was beginning to get into coding. Sometimes having those things hidden from you the way love does isn't actually helpful in the end (though it's very good that you're abl...
by Bobbias
Mon Jul 22, 2013 8:50 am
Forum: Support and Development
Topic: [HELP] How to do this portal view effect??
Replies: 10
Views: 5440

Re: [HELP] How to do this portal view effect??

Yeah, that can get nasty to work with.
by Bobbias
Mon Jul 22, 2013 7:14 am
Forum: Support and Development
Topic: Adding weapon types
Replies: 6
Views: 4122

Re: Adding weapon types

Modularization is probably a good idea. I actually prefer to keep my stuff modular from the very beginning, that way I never have the 1k line long main.lua that's full of random bits and pieces of code that don't belong there. It wouldn't be hard to split this code into a few files. Maybe something ...
by Bobbias
Mon Jul 22, 2013 7:05 am
Forum: Support and Development
Topic: [HELP] How to do this portal view effect??
Replies: 10
Views: 5440

Re: [HELP] How to do this portal view effect??

You'd need to check if there are any portals that they player could see through. Then you'd have to calculate all the angles for those lines on either side of the portal opening based on the angle between your character and the portal edges. Then you'd have to create a stencil based on the where tho...
by Bobbias
Mon Jul 22, 2013 6:44 am
Forum: Support and Development
Topic: Fixing An Incorrectly Coded Drawing Function
Replies: 18
Views: 12671

Re: Fixing An Incorrectly Coded Drawing Function

I can't guarantee any code here will work. This is just to explain what is wrong and give you an idea of how to fix it. And please, for the love of god, use consistent indentation. I don't care about the specifics, but make sure everything is indented when it's inside a block of code (if statements...
by Bobbias
Tue Jul 09, 2013 4:32 pm
Forum: General
Topic: Pause a sprite's movement?
Replies: 3
Views: 2486

Re: Pause a sprite's movement?

I assume I need to delay the update of sprite.x in the update() function, but how do I let it pause for that 1 second without affecting other sprites that I may have? I noticed this line and thought I should address it. Remember, the update() function is there to process changes every single frame....
by Bobbias
Tue Jul 09, 2013 2:54 pm
Forum: General
Topic: LÖVE written in C++?
Replies: 16
Views: 8355

Re: LÖVE written in C++?

On the topic of 3D games in java, I went the route of just using LWJGL a while back (not that I finished anything though lol). It's a nearly 1 to 1 binding for opengl in java. You can basically use the C/C++ docs for opengl and rarely run into any issues (aside from when dealing with functions which...