Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Madhed

Member Since 13 Jun 2001
Offline Last Active Yesterday, 04:31 PM

#5235900 Code crashing when exiting if statement

Posted by Madhed on 20 June 2015 - 01:24 PM

Could be a crash inside the log function?

 

Anyway, did you run it with a debugger? Assuming visual studio, hit F5. It will build your program in debug mode and attach a debugger. When the program crashes you can pinpoint the exact location and look at the state of the variables to see what is going on.




#5225894 Small indie question

Posted by Madhed on 27 April 2015 - 01:10 PM

What would be the alternative to spending the $200?

 

Spend nothing: Your game will not be released.

Spend 100$: Release the game without music?

 

Also, the $100 for iOS development is an annual fee. The $25 for android is a one off payment.

 

Before releasing though, make sure that your game is as polished and bug free as possible.

Also, if you want to make a profit and not just release it for fun you will have to make your game known. The chance of an app becoming successful without any advertising is virtually zero. Games like flappy bird are a very very rare exception.




#5216919 Names for a "Death Star"

Posted by Madhed on 16 March 2015 - 03:03 PM

Doomball




#5216341 Starting fresh

Posted by Madhed on 13 March 2015 - 03:31 PM

Don't set everything in stone.

Be open to criticism.

Don't withhold information from your team. (within reason)

 

Actually this works from the other side too smile.png

 

Demand changes if neccessary.

Criticise unoptimal behaviour early and fairly.

Inform yourself regulary on what's going on.

 

Also: Don't be a dick.

 

 




#5214805 Texture atlas generator

Posted by Madhed on 05 March 2015 - 01:26 PM

we use TexturePacker https://www.codeandweb.com/texturepacker

 

It is a great tool but not free. (€39.95)




#5213304 Having trouble harnessing the power of Inheritance. (best practices advice re...

Posted by Madhed on 27 February 2015 - 06:57 AM

I don't quite understand why you say this. I'm familiar with inheritance vs composition, and IS-A vs HAS-A. It seems to me that this is clearly an IS-A situation. 
Wizard IS-A Baddie
Knight IS-A Baddie
Slimer IS-A Baddie

 
The problem is that you use IS-A in the way we normally use the term in natural, spoken language. However in OOP the term has very specific meaning. I personally blame bad teachers for this misunderstanding, as inheritance is often taught with contrived real world examples that never actually occur in real software projects. (Plant-Flower-Tree-Bush for example)
 
Make yourself familiar with the Liskov substitution principle. This should be the benchmark to decide wether you should use inheritance or composition. As a general rule of thumb: When in doubt, use composition.




#5210338 How to correctly inject and share an object to multiple other objects

Posted by Madhed on 12 February 2015 - 02:20 PM

Also keep in mind that, depending on your use case, you might not want to store a reference to A at all.

It's perfectly ok to just pass A as an argument when calling a method of B or C.




#5206480 Constructor gotcha's?

Posted by Madhed on 24 January 2015 - 06:01 PM

IMO the most important aspect of OOP? Invariants!

When you are declaring a class you are introducing a new type.

 

The constuctor is responsible to ensure that the object is initialized with a valid state. Every public method should make sure to leave your object in a valid state satisfying the class invariant.

Once you have internalized this concept, your code will become much more robust.




#5206090 no vsync means double buffering to avoid tearing, right?

Posted by Madhed on 22 January 2015 - 06:29 PM

Without vsync there will be tearing, whether double or triple buffering doesn't matter.




#5204951 Can anyone explain why this seems to be the source of intermittent slowdown?

Posted by Madhed on 17 January 2015 - 01:21 PM

http://www.gamedev.net/blog/355/entry-2260109-a-quick-introduction-to-sampler-based-profiling/

 

http://www.codersnotes.com/sleepy




#5204317 Checking the equality of objects in C#

Posted by Madhed on 14 January 2015 - 04:01 PM

Your code is very verbose.

 

Any reason why you are not using properties? http://msdn.microsoft.com/en-us/library/x9fsa0sw.aspx

You can also override Equals() or the == operator to make testing for equality much simpler http://msdn.microsoft.com/en-us/library/ms173147(v=vs.80).aspx

 

As for your problem: Are you sure the order of the arguments on this line is correct?

Person pSearch = new Person(firstName, lastName, State, ZipCode, PhoneNumber, Address, Age);

EDIT:

more stuff to read:

http://msdn.microsoft.com/en-us/library/bb384054.aspx




#5203587 Estimating effort Hours

Posted by Madhed on 11 January 2015 - 06:56 PM

You can give time estimates for the tasks. These will probably be wrong however.

After finishing some amount (say one week) you should go back to the original estimates and find out what took longer and what actually was done quicker than planned.

You should involve your team in this process and absolutely make clear to them that it isn't a personal fault if they needed more time than expected.




#5200685 Is Unity good for learning?

Posted by Madhed on 29 December 2014 - 06:07 PM


Visual Studio Express is a little bit weird. It's separated into a few different versions. I personally use their professional version, but I believe that the version you'd need is called "Visual Studio Express 2013 for Windows Desktop." Express should provide all the features you could ever need

 

Actually Microsoft just released the community edition of visual studio for free, which has all the pro features such as plugin support.

 

http://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx




#5195332 Decoupling physics

Posted by Madhed on 29 November 2014 - 08:28 AM

Why are you doubting that this is the correct approach?

The physics systems acts as a service in this case and the other systems are consumers.

 

Events or not, your picking system is dependent on the physics system either way, as without it your code would not work.




#5195273 Particle Systems & Handling Transparency

Posted by Madhed on 28 November 2014 - 05:52 PM

Tween vertex color to RGBA(0,0,0,0) this gets rid of both terms






PARTNERS