Ok, thanks :)
Type: Posts; User: TonyP
Ok, thanks :)
Is it possible to make the mouse cursor move for example 32 pixels at a time inside a window when you move it?
Hi
Im supposed to make a molecular weight calculator program for school.
The user inputs a formula for example: Ca(OH)2.
Then the program calculates the weight and displays it
Ca(OH)2 ->...
Yes, it does.
passing `const CObject' as `this' argument of `bool CObject::operator<(const CObject&)' discards qualifiers
stl_algo.h:2118: instantiated from `void std::__introsort_loop(_RandomAccessIter,...
How do I sort a STL vector containing my own class.
I have a class called CObject and a vector
vector<CObject> Objects
In CObject is a function called GetYPos().
I need to sort the vector so...
Hi
Is it possible to get memory leaks without using dynamic memory?
Xpos and Ypos are the planes position so
they are updated or the plane don't move :)
Like I said before the bullets gets the planes position once it's fired and then the bullets Ypos increases...
The bullet gets the planes position when you fire it.
void fireBullet()
{
int i = getBullet();
if (i != -1)
Hi, I'm trying to make top-down shooter game with
C/SDL/OpenGL
http://w1.853.telia.com/~u85324201/game.zip
The problem is that when you shoot, the bullets don't come from the plane but from...