Quote:
Originally Posted by smasher
It's going to depend a lot on how you built your game. I assume when you first start the game, you have code that puts all of the blocks on the screen, puts the ball and paddle into position, and sets the score to zero?
If you put all of that code into a method called, lets say, "resetGame" , then you can use that method twice - once when you start the game, and again when they click replay.
Is there something in particular you need help resetting, like removing subviews you've added?
|
Thanks for reply...
I have no problem removing or adding subviews....
I tried it because i have a method to start the game....,, but i have placed the bricks with IB.
so the removed bricks doesnt pop up again.....
Isnt there an easier way to restart a view/level??
Regards...