+ve = POSITIVE
-ve = NEGATIVE
or just read previous thread
Type: Posts; User: pdstatha
+ve = POSITIVE
-ve = NEGATIVE
or just read previous thread
std::vector that one
+ve = positive
-ve = negative
Say you had a vector with some +ve ints and some -ve ints, how do you return the one which is closest to 0???
Heres the intialisation code for the panel texture.
bool CHardball::InitGame()
{
//Setup panels for 2D
m_pPanel1 = new...
the ball texture
I've set the background colour of my D3D app to white, i've also loaded a texture (ball.bmp) onto a set of vertices, and set the key colour to white also. Why is it then with the white pixels on the...
I keep get an annoying error, now its probably really easy to solve but its late and I can't think.
d:\hardball\projectfiles\hardball\hardball.h(29) : error C2143: syntax error : missing ';'...
I'm not really too sure how to go about this, basically I'm trying to program a breakout clone. I've already made a series of bitmaps for the game to use, i.e. the blocks, paddle and the ball.
...
Umm this is probably a very dumb question, but how do you draw a circle??
I know how to draw things like triangles and rectangles, but I haven't come across a circle as of yet.
*bump*
Someone must have this book!!!!!
On page 24 he uses the following piece of code in his cGameError class
DP1("***\n*** [ERROR] cGameError thrown1 text: [%s]\n***\n
",errorText);
Where does DP1 come from as the throws up...
Just a side note, I plan on trying to get to grips with the DirectX API, pretty heavy stuff these API's. How the hell did you guys get to grips with it.
I have to admit its quite daunting at the...
Small update, I changed the display slightly so that the user can now see all the numbers in hard. I've also included the source code and VC workspace files.
Get it here:...
Ok i'll show u my problem, i have two cpp files and two header files.
definitions.h :
#ifndef DEFINITIONS_H
#define DEFINITIONS_H
#define OK 1
#define FAILED 0
Currently I have two files a header file and the main cpp file, I do however want to split these into seperate files aswell. I'm slightly confused cos i've never done this before, what happens with...
I've gotten rid of a few bugs and added a move counter, go to the same URL to download it.
Hi peeps, i've "completed" my first game its a DOS based version of the towers of hanoi. There are three pegs A,B+C to start with Peg A has a series of rings the smallest on top and the largest on...
This is after choosing option 1
This is it normal running
Yeah I did have it set as an int before (gets the number of rings) that was really just set up for testing purposes, any ideas why this is being such a *****!!!!!
I've attached the zipped VC++...
Just a couple of things i spotted
if(checkarea(&rect) != 0);
{
return 0;
}
Change this to
Ok now i'm getting slightly confused, I've defined a difficulty class which should change a few settings of my game.
class CDifficulty{
public:
CDifficulty(const char* itsSetting = "",const...
Why do you use the switch statement only once???
Ah never mind, I got the answer, I was given the idea of putting the pointers into a struct and passing the struct instead. Heres the update.
struct menuStruct{
CMenu* mainMenu;
CMenu*...