Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 08 Jun 2012
Offline Last Active Jul 20 2012 03:54 PM

#4958922 Why Game Programming?

Posted by on 13 July 2012 - 03:20 PM

I'm building my own engine because engines like Unity are unappealing to me.... And not because of the fact that it does or doesn't provide me what I need, but simply because I want to get something more out of it and that is knowledge and experience. If I build an engine, but I stop there and I don't make a game, I'll be happy.

#4951507 How to avoid game state hell (huge switchs)?

Posted by on 21 June 2012 - 03:33 PM

I suppose I came in half cocked. I don't optimize as I code myself and I use polymorphism pretty liberally. I simply code with those thoughts in mind. But I was of the mind that polymorphism's cost was still a determining factor when deciding whether or not to use it and I never did any experiments to confirm. Thanks for setting me straight guys.

#4950701 How to avoid game state hell (huge switchs)?

Posted by on 19 June 2012 - 01:56 PM

Except that the strategy pattern comes with a significant cost and that's the cost of virtual look up every time you call a Strategy's method. Optimized code is not necessarily the best looking and most manageable code.

So ask yourself and clarify for us, do you want performance or convenience? With that in mind notice that the examples are written in JAVA. Most Java apps don't care too much about performance on the level required by a game.