Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your feedback on a survey! Each completed response supports our community and gives you a chance to win a $25 Amazon gift card!


IndyOfComo

Member Since 18 Jul 2012
Offline Last Active Dec 19 2014 08:19 AM

#5193801 Need a short name to replace a really really long function's name

Posted by IndyOfComo on 20 November 2014 - 08:11 AM

I'm with Diego--maybe it can be shortened because there's a shorter way of saying what you're doing.

 

Personally, I wouldn't bother with the +Event method if all it's going to do is call a method of the same base name and do nothing else.

 

ButIRecognizeAndEmpathizeWithFolksWhoDoNotLikeTheCurrentPopularConventionOfRidiculouslyLongMethodNames. There's something to be said to reading something short (say under 30 chars) and know which method/value is being referenced, rather than having to read all the way out to characters 55-60 to finally distinguish entities.




#5185513 Key input delay

Posted by IndyOfComo on 07 October 2014 - 06:48 AM

Also you could put in a timer function to enforce delay, to put a maximum effectiveness or gimp modded controllers/programs.




#5110221 Hours per week

Posted by IndyOfComo on 18 November 2013 - 10:13 AM

I'm just interested in hearing how much time people put into their game development. If you like, please respond with an average weekly total in hours, and what's your level of experience. (Are you hobby programmer only, or professional as well? Is this your first or second game, or have you completed 10 games?)




#5103834 List<> remove

Posted by IndyOfComo on 23 October 2013 - 01:02 PM

 

can i just do something like this.

gameStates.Remove(gameState)

 

 

 

Would it be good advice though to pick different names?  gameState and gameStates are pretty easy to get confused.

 

It isn't.

GameState is uppercase, 

 

 

No, it's not.




#5093339 coin flip problem

Posted by IndyOfComo on 11 September 2013 - 12:56 PM

 

 

Thanks very much for the quick reply, a quick follow up question. I have been struggling with while loops for the last few days, the above script is my current attempt to loop the script if the user input is not one of the acceptable values, from what i have read it would seem that a do-while loop would apply but i should be able to do it with a while statement?

 

Also, Mr Stx, I would highly suggest tackling one error at a time and not adding code when you know you have an error. This practice should make it easier to fix things as you find them. Above, you have changed the main line to loop, but you also still have the problem of treating randRange() as a variable. Now, this error has nothing to do with your infinite loop--the replies you've gotten on that should be helpful--but that just happens to be the case in this situation. If you add too much all at one time, it can become much more difficult (as a beginner) to figure out where the problem is really coming from. So fix the randRange() thing, then straighten out your boolean algebra(woot!), and then move on.

 

While I was typing this I see you have another post. I put in a link above, I don't know how helpful it will be.




#5092153 Merge tools

Posted by IndyOfComo on 06 September 2013 - 02:43 PM

What would folks suggest for a merge tool?

 

Our project is in C#(XNA). We're using Mercurial and interfacing with it via TortoiseHG. Occasionally I have a lot of work to do helping the merge tool make decisions, and even then sometimes I get it wrong. I know I have two tools at my disposal, though so far I have only used Kdiff3 (just trying to reduce time spent learning different interfaces).  Sometimes kdiff3 can't tell that my partner and I added things to the same spot and that we need both. (I haven't been able to find a "keep both" command during the merge process.)

 

Or maybe I'm just Doing It Wrong. But I'd like to hear thoughts on merge tools.




PARTNERS