Game Development Reference
In-Depth Information
dt.start();
}
startGame();
}
@Override
public void
surfaceChanged(SurfaceHolder holder,
int
format,
int
width,
int
height) {
}
@
Override
public void
surfaceDestroyed(SurfaceHolder holder) {
dt.flag =
false
;
dt.isViewOn =
false
;
}
GameView extends SurfaceView and implements the SurfaceHolder.Callback interface to
receive the information about any changes to the surface. Without Callback, GameView
only outputs a blank screen.
Search WWH ::
Custom Search