Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your help!

We need 7 developers from Canada and 18 more from Australia to help us complete a research survey.

Support our site by taking a quick sponsored survey and win a chance at a $50 Amazon gift card. Click here to get started!

Dave Hunt

Member Since 30 Dec 2002
Offline Last Active Yesterday, 10:19 PM

#5250160 What is latest version of DXSDK

Posted by Dave Hunt on Yesterday, 01:27 PM

For further info, see Where is the DirectX SDK?

#5249647 [Java] Server is only receiving one movement packet

Posted by Dave Hunt on 29 August 2015 - 11:11 PM

Unless the client opens a new connection every tick (a very bad idea) you're going to sit in that while loop until the client exits. You may need to rethink your design.

#5249264 How is this python statement suppose to be friendly? (3.4 ver)

Posted by Dave Hunt on 27 August 2015 - 09:03 PM

The '^' means "begins-with". The square brackets form a "closure" that means "any of". The '*' means zero or more occurrences of the previous pattern. So, all together, it means "match anything that begins with any character in the brackets followed by any number of occurrences of what's in the brackets".


It's called a "regular expression". Put that term in google and you will learn more than you ever want to know.

#5248115 RPG, Engines and Frustration

Posted by Dave Hunt on 21 August 2015 - 01:56 PM

Tetris wasn't made by one guy.

Actually, it was.

#5244693 Clone functions

Posted by Dave Hunt on 05 August 2015 - 11:33 AM

Yes it's part of a factory but for the property system the clone function is also used when undo command need to store a copy to redo the command.

This is where all start about the question, sometime only a simple instance is needed and sometimes a full copy.

To be coherent all clone function should do the same thing full or just instance.

But sometimes, the full copy is not needed.


If all you need is a new, empty/default instance, then use the constructor or factory. If you need a copy, then use Clone (or a copy constructor).


Calling a method that does nothing but create a default instance "Clone" is very misleading.

#5244520 Including headers from Windows 10 SDK

Posted by Dave Hunt on 04 August 2015 - 11:30 AM

Sometimes installers don't do everything their supposed to do. It's best to check and make sure.


You say "IntelliSense doesn't detect that." Does it compile?


edit - ninja'd

#5244500 Including headers from Windows 10 SDK

Posted by Dave Hunt on 04 August 2015 - 09:10 AM

Check your project options and make sure that the Windows 10 SDK directories are listed in the include/lib paths.

#5240682 Help with C# XNA/Monogame

Posted by Dave Hunt on 15 July 2015 - 10:28 PM

Instead of ElapsedGameTime, use TotalGameTime. TotalGameTime is the time since the game started rather than the frame elapsed time.

#5240511 Help me to clear up my confusion about OpenGL

Posted by Dave Hunt on 15 July 2015 - 10:06 AM

I would love to learn graphics programming but I do not want it to be DirectX

Why is this? I don't ask to open up a flame war, but out of interest in your reasoning. If your goal is as broad as learning rendering, shaders and meshes, it would be unwise to eliminate a well-documented technology with plenty of available tutorials and samples without serious consideration.

#5240109 "Mode7" perspective projection "arch"

Posted by Dave Hunt on 13 July 2015 - 01:07 PM

Have you looked at the various "Map Projections"? - https://en.wikipedia.org/wiki/Map_projection


It looks like one of the equal-area projections might be what you're looking for.

#5239544 What game engine should I use?

Posted by Dave Hunt on 10 July 2015 - 11:31 AM

As you can imagine, this question is asked at least once a day. I would suggest you look through these search results first and see if they give you the information you're looking for:


what game engine

#5239519 VS 2012 express any good?

Posted by Dave Hunt on 10 July 2015 - 10:10 AM

Is the general feeling that Microsoft is aiming the community edition solely at open-source and hobbyist developers, or are the licensing terms being interpreted overly broadly?


This whitepaper from MS explains it pretty well (see page 10).

#5239423 Visual Studio Not Recognizing #include for SDL?

Posted by Dave Hunt on 09 July 2015 - 11:13 PM

There are settings in Visual Studio to tell it where to find additional include and library files. You need to add the SDL include directory to the set of include directories and the SDL lib directory to the set of library directories.


Where you find those options depends on what version of Visual Studio you are using.


It could be Tools->Options->Projects and Solutions->VC++ Directories for older versions. For newer versions see http://www.curlybrace.com/words/2012/12/17/setting-global-c-include-paths-in-visual-studio-2012-and-2011-and-2010/ for a quick how-to.

#5237780 Making a text-based adventure game with Ruby

Posted by Dave Hunt on 30 June 2015 - 08:04 PM

This is the most useless things there is to say.

I'd say a one page post that does nothing but chastise another poster and derail the topic is much more useless than one that actually addresses the OP's question...

#5237720 Making a text-based adventure game with Ruby

Posted by Dave Hunt on 30 June 2015 - 01:20 PM

Google has quite a bit to say on the topic: ruby text-based adventure game programming


There are links to several tutorials and examples there.