No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
17 Posted Topics
Re: [QUOTE=Sodabread;1234540]For starters, gamedev.net is one of the best game development sites on the net. Lots of good tutorials and help there.[/QUOTE] Second this. Gamedev.net has [I]tons[/I] of information on every aspect of game development. A quick forum search turns up [URL="http://www.gamedev.net/community/forums/topic.asp?topic_id=532961&whichpage=1&"]this[/URL]. | |
Re: Just use [ICODE]std::string[/ICODE] and avoid all this [ICODE]char*[/ICODE] nonsense. | |
Re: [QUOTE=GameGuy;1212511]Please, just tell me what a game engine is! Sorry for my rudeness, GameGuy[/QUOTE] Take a game and strip out everything that makes it a [I]particular[/I] game. What's left is that game's engine. | |
Re: They're useful when you want to treat a bunch of differently-typed but related objects as if they were all the same in some specific respect. For example, pretend you have two classes derived from a base class: [CODE] class Animal { public: virtual void Eat() = 0; // Pure virtual … | |
Re: You have [ICODE]wage[/ICODE] declared in main, and [ICODE]hrlywage[/ICODE] declared as a member of [ICODE]EmployeeSalary[/ICODE]. You then try to use [ICODE]wage[/ICODE] in member functions defined for [ICODE]EmployeeSalary[/ICODE]. But [ICODE]wage[/ICODE] isn't visible inside these member functions, because it's not global to the project. Also, I think you're just getting your variables mixed … | |
Re: Are you talking about making a window for your program to run in? If so, look into Win32 and Direct3D (for Windows applications). Note that, if this is indeed what you're trying to do, "drawing" to a window with Direct3D is not all that simple. You could also look into … | |
Re: Ever think about the math required to position and orient an object in 3D space? If you're not familiar with terms like vector, matrix, and quaternion, look 'em up. Each one of them is used in 3D math. That's just one example. | |
| |
Re: It's really impossible to say without knowing the details of the level editor. | |
Re: The book which opened my eyes to what OOP code really looked like was [URL="http://www.amazon.com/Design-Patterns-Elements-Reusable-Object-Oriented/dp/0201633612/ref=sr_1_1?ie=UTF8&s=books&qid=1275496485&sr=8-1-spell"]Design Patterns[/URL]. It's old, but it's a classic and still extremely relevant. Beyond that, the best way to get a feel for what works and doesn't work in an OOP context is to just write lots … | |
Re: Indenting FTW. It's be much easier to spot what was wrong here if you indented each level of scope. The problem, as Fbody says, is that you're trying to define your functions inside of main, which is not allowed. | |
Re: That's a pretty good analysis. In general, you should always favor C++ containers over C ones if you have access to them. Also, a bit random, but one of the biggest false arguments in favor of native C arrays over C++ containers is that some collection of data [I]must[/I] be … | |
Re: The problem is that you're trying to initialize the vector in the header file. Keep it extern, but declare it in the header file like [ICODE]extern vector<Bugpt> Bugarr;[/ICODE]. Then, in a [I]source file[/I], define and initialize it like [ICODE]vector<Bugpt> Bugarr(6);[/ICODE] I think that should work. | |
Hey there, DaniWeb! I'm Matt, a student at the University of Michigan (Go Blue) majoring in business and computer science. My friends would tell you I'm obsessed with programming. They're lying... but not really. I post pretty regularly over at GameDev, under the same username, and I've recently started up … | |
Re: Create an enum for the different types of components. Then create an array indexed from 0 to NUM_COMPONENTS - 1 for the price, quantity, and string name of each component. You'll access the components in the array by their enumerated value, like quantities[CAMERA]. Finally, loop over the enumerated values to … | |
Re: The problem is that, when you initialize max, imageCount hasn't yet been assigned. Your compiler is probably defaulting it to zero (although this isn't guaranteed), which means max has size == 0. Then when you try to access it in your loop, you're accessing outside the bounds of the container, … | |
Re: [QUOTE=doronweiss;1236497]The problem is that the statement "both pointers array" is incorrect ! Appointment *appts[8]; is a pointers array WHILE Day * days; can be looked at as a POINTER TO AN ARRAY, array of actual Day objects, not pointers ![/QUOTE] As a side note, this is one of the reasons … |
The End.