# Search:

Type: Posts; User: pbivens

Page 1 of 5 1

## Search: Search took 0.00 seconds.

by pbivens
Replies
34
Views
1,750

### well I am working on my simon game, I am making...

well I am working on my simon game, I am making the AI for my game. this problem is quite difficult, any input on how I should proceed?

by pbivens
Replies
34
Views
1,750

### well I finally solved my square problems. thanks...

well I finally solved my square problems. thanks for all the help

by pbivens
Replies
34
Views
1,750

### well I got my code to blink off and on one of my...

well I got my code to blink off and on one of my rectangles, I want it to blink on and off only once.

by pbivens
Replies
34
Views
1,750

### thanks for the help, I will work on my code more....

thanks for the help, I will work on my code more. is there any tutorials I can look at that will help?

by pbivens
Replies
34
Views
1,750

### can I please get some more help, I have almost...

can I please get some more help, I have almost solved my problem.

by pbivens
Replies
34
Views
1,750

### I have almost solved my problem. I got a...

I have almost solved my problem. I got a rectangle to turn off by itself. I just want it turn on by itself as well.

void delay(int v)
{
board[0][0] = 1;
glutPostRedisplay();...

by pbivens
Replies
34
Views
1,750

### is there I can use as a wait function?

is there I can use as a wait function?

by pbivens
Replies
34
Views
1,750

### int num = 2; if (num == 1) { board[0][0]...

int num = 2;

if (num == 1)
{
board[0][0] = 1;
}
if (num == 2)
{
board[0][1] = 1;
glColor3f(0.5f, 0.0f, 0.0f);

by pbivens
Replies
34
Views
1,750

### well I am now working on the computer player in...

well I am now working on the computer player in my game. right now one of my squares is dimmed, I want it to turn on and off and on again.

void draw_button()
{
if (board[0][0] == 1)
{...

by pbivens
Replies
34
Views
1,750

### now I have to work on the AI for my game. I have...

now I have to work on the AI for my game. I have to develop the computer player for my simon game. can I get a hint on how to proceed further.

by pbivens
Replies
34
Views
1,750

### I finally solved my problem, thanks for all the...

I finally solved my problem, thanks for all the help.

by pbivens
Replies
34
Views
1,750

### well I tried the glutPostRedisplay but it made...

well I tried the glutPostRedisplay but it made the buttons to not blink on and off. they just stayed static.

by pbivens
Replies
34
Views
1,750

### cool I am glad that I understand display callback...

cool I am glad that I understand display callback functions. here is my mouse callback

void onMouseButton(int button, int state, int x, int y)
{
if (button == GLUT_LEFT_BUTTON && state ==...

by pbivens
Replies
34
Views
1,750

### well here is my display callback function ...

well here is my display callback function

void RenderScene(void)
{
glClear(GL_COLOR_BUFFER_BIT);
Draw_Buttons();
glFinish();
draw_button();
}

by pbivens
Replies
34
Views
1,750

### simon game

I am working on a simon game. I am using c++ and opengl.I am able to draw four buttons. When press a button with the mouse it turns off and on. however it also turns on and off the other buttons. I...

by pbivens
Replies
34
Views
1,750

### I have already posted my code above.

I have already posted my code above.

by pbivens
Replies
34
Views
1,750

### I am building a simon game. However when I press...

I am building a simon game. However when I press a square and another square it turns both squares off and on. I want to turn on and off one square at a time.

by pbivens
Replies
34
Views
1,750

### I am going to work on this problem more.

I am going to work on this problem more.

by pbivens
Replies
34
Views
1,750

### I have made more progress. void...

void delay_one(int v)
{
glColor3f(1.0f, 1.0f, 0.0f);
glRectf(-90.0f, 90.0f, -10.0f, 10.0f);
glutTimerFunc(1000, delay_one, v);
glFlush();
}

by pbivens
Replies
34
Views
1,750

### well I finally solved this problem. here is the...

well I finally solved this problem. here is the code I am using.

void delay(int v)
{
glColor3f(1.0f, 1.0f, 0.0f);
glRectf(-90.0f, 90.0f, -10.0f, 10.0f);
glutTimerFunc(1000, delay, v);...

by pbivens
Replies
34
Views
1,750

### void delay(int v) { glColor3f(1.0f, 1.0f,...

void delay(int v)
{
glColor3f(1.0f, 1.0f, 0.0f);
glRectf(-90.0f, 90.0f, -10.0f, 10.0f);
glutPostRedisplay();
glutTimerFunc(1000, delay, v);
glFlush();
}
void draw_button()
{

by pbivens
Replies
34
Views
1,750

### void delay(int v) { glColor3f(1.0f, 1.0f,...

void delay(int v)
{
glColor3f(1.0f, 1.0f, 0.0f);
glRectf(-90.0f, 90.0f, -10.0f, 10.0f);
glutPostRedisplay();
glutTimerFunc(1000, delay, v);
}
void draw_button()
{
if (board[0][0] == 1)

by pbivens
Replies
34
Views
1,750

### delay function

void delay(float secs)
{
float end = clock() / CLOCKS_PER_SEC + secs;
while ((clock() / CLOCKS_PER_SEC) < end);
}
void draw_button()
{
if (board[0][0] == 1)
{
glColor3f(0.5f, 0.5f,...

by pbivens
Replies
0
Views
184

### moving rectangle

well I am able to rotate my rectangle but I want to move it up or down after I rotate it and have it follow the nose of the rectangles. I want to move my rectangles like asteroids.

void...