ok I fixed it...
I just used a variable throughout the hold the whole program so I could get rid of the loop...
Type: Posts; User: Disturbed1
ok I fixed it...
I just used a variable throughout the hold the whole program so I could get rid of the loop...
MainTitle() clears the bitmap and displays the title screen... I have called this from other loops and it works fine...
the loop is there to freeze the gameplay while the Win and Lose signs are...
yeah I have other loops just like this one but this one just wont break....
it just gets stuck in the loop... and i have tried calling other functions and just simply breaking the loop and it sticks no matter what.... I will try the
while(!key[KEY_ENTER]
why does this freeze? Everything happens as it should but when I hit enter.... nothing hapens... any ideas?
void PlayerWin()
{
if(Current.gameover == 1)
{
Current2.score += 15000;...
I want to update the int line every time a line is cleared in my tetris game. And I want to tell how many lines are cleared at once so I can adjust the score accordingly....
void ClearLine()...
yeah sorry about that...
I figured it out though.. I just needed to clear my variables before the loops.
I have been EXACTLY where you are now... so take it from me, If you do not have a good understanding of the WinAPI and just want to make some simple games with graphics, I STRONGLY recomend Allegro....
How does this work...
for(int i = 0; i < 4; i++)
for(int j = 0; j < 4; j++)
if(map[i][j] == blank) collision = 0;
now if any of the array returns blank it falls but I want it so...
heh.. thanks.
I think im gonna hold off on this stuff until I actually take trig in school...
I dont really know any trig or anything so im hoping someone will help me out.
I have a sprite on the screen that rotates.
Here is what om doing:
Player1.x += cos(Player1.angle) * 4;...
Shoud I use something other than
name2 = name1
Would strcpy() or a bitwise operator br better?
I really just want to get this through so I can put the tetris thing behind me............
In my game I am trying to get the user to type in his/her name and write the name and score into a file.
Here is some of what I have
void GetName()
{
newname[0] = ' ';
oh.... Wow, I feel stupid.... Thank You!
Thank you
I cant figure out how to use the atoi function....
So Maybe its not wht I need.
How can I do this
int number;
char string1[20];