Advertisement

Pausing a game

Started by February 05, 2001 04:26 PM
12 comments, last by penetrator 24 years ago
>>zedzeeks code is severely flawed, it doesnt even handle vector mipmaps! <<

sorry but u lost me there mate

http://members.xoom.com/myBollux
quote:
Original post by wyrms

this is extremely difficult to do



Am I missing something here?

Usually it''s as simple as

When running, render and update
When paused, render, but don''t update
When minimized, don''t render or update

You could even split the update so that you can still scroll about and stuff (i.e. Baldur''s Gate)

paused, running and minimized are just flags set from the message proc.

Gee Brain, what we gonna do tonight?
Advertisement
DarkAngle16: If you use if(bPause=false) then bPause is false and the statment is always false. Use if(bPause==false).

ZedZeek: I think it was a joke refering to the emptyness of your mainloop function.
Chess is played by three people. Two people play the game; the third provides moral support for the pawns. The object of the game is to kill your opponent by flinging captured pieces at his head. Since the only piece that can be killed is a pawn, the two armies agree to meet in a pawn-infested area (or even a pawn shop) and kill as many pawns as possible in the crossfire. If the game goes on for an hour, one player may legally attempt to gouge out the other player's eyes with his King.
I have the gamestate paused so I can still get input and render and playsounds.



InFerN0

Not all who wander are lost...
InFerN0Not all who wander are lost...

This topic is closed to new replies.

Advertisement