Fun Fact: The flash version is actually very similar to the first version of UberTube I wrote (in C++/GL), while this second version is probably the better game.
Also funny you mention SkyRoads,...
Type: Posts; User: CrazyNorman
Fun Fact: The flash version is actually very similar to the first version of UberTube I wrote (in C++/GL), while this second version is probably the better game.
Also funny you mention SkyRoads,...
I can't find the source code at the moment, but I did find a copy of the EXE for it, so that's something. The website is down so high scores don't function but it's playable :)
...
HAHAHAHAHAHAHA. I take it you haven't interviewed many college grads ;-)
What you're looking for is called volumetric light. I've never attempted it before, but there's lots of info on google. Looks like you might need some complex math with shaders.
My friend solved a similar problem in 2-d for turrets firing at moving targets.
You have a few equations for the motion of the bullet
bulletX(t) = initialX + bulletVelocityX * t
bulletY(t) =...
Can we see the code that you are using to load the entire file and then search it? Even for 11,000 entries, I can see this taking a few seconds, not a few minutes... There might be something wrong...
Any form of "delete this" is never safe, because the object does not know whether it is allocated on the stack or on the heap. If it is allocated on the stack, first off, the destructor will be...
First off, you'll need to learn some of the IRC protocol in order to connect to the IRC server. While the official standard is here, http://www.irchelp.org/irchelp/rfc/rfc.html, this may be a...
"eyesDown2.png" is a (const char*), while you are trying to copy it into a non-const char*.
You either have to make ghostEyesDown2 const, use strcpy, or use a C++ style string.
If I remember, O(f(x)) = g(x) if there exist constants c, d, and e such that c * f(x) + d >= g(x) for all x > e. Thus, O(n / 8) = O(n), because 8 * (n / 8) + 0 >= n, for all x > 0. (c = 8, d = 0, e...
You could just change the comparison operator you're using '<' vs. '>' in your bubble sort, and it should be sorted in the reverse order of you're sorting it now.
You could use a string stream
#include <sstream>
#include <iostream>
using namespace std;
int main(int argc, char **argv)
{
While going over my friend's code, I noticed he had
class A
{
public:
...
private:
int counts[];
};
I'll preface this by saying this is a homework problem for a data structures class. I'm not looking for you to do the whole problem for me, it's frowned upon, a waste of your time, and a waste of...
If you want to get into 3d modeling, both Anim8or and Blender are free. Anim8or is easier to learn while Blender is more powerful, but both have options to export your models into relatively easy to...
If you have a set line width, ie, every line is exactly 80 characters, you could easily overwrite specific chunks of data using random access binary operations.
I'm guessing most keyloggers are looking at the software messages which go along with keyboard events, not the low level keyboard driver. This approach would be simpler to implement and require...
Let's say you have a 640x480 texture. You would load it, then create a blank 1024x1024 texture (the smallest power of two <= the textures largest dimension). Then, blit your texture to the blank...
I've been working on a ray tracer for the past two or three days. At this point, I have ambient, diffuse, and specular lighting, along with reflections. Finally, I have multisampling/antialiasing. ...
Running Windows 2000, I can assure you that "Windows Key L" did not become a shortcut for lock screen until Windows XP. Instead, on previous versions, you must first press "Ctrl+Alt+Del" and then...
Considering the fact that any computer you are likely to deal with will be running a pentium or later at this point, why not look at the places that call this function, and see if you even need to...
When you reserve an array that large, if every "bool" takes up one byte, then the array of bools will take up 4 GB. Most machines don't have this much RAM, so you end up with swapping, and a general...
Your code is a near replica of the wikipedia pseudocode. Note the following from wikipedia:
Try writing your own version of the Seive of Eratosthenes, as it is simpler to implement. A well...
I'm trying to decide which school to attend. Its looking like a choice between Rensselaer Polytech and Worcester Polytech. WPI is closer to home, but RPI is generally considered to have better...
Just for the sake of keeping a flamewar going, it can be a good habit to use ++n within loops, not for performance reasons, but because of iterators. Although all of the standard iterators will be...