Hello, I am currently trying to write a simple shoot them up game with top down perspective. I am using SurfaceView and Canvas to draw the graphics on the screen, but I cannot find out how to make the "camera" scrollable. The player character is always in the center of the screen and the camera(SurfaceView's canvas essentially) is supposed to be following him all the time(for example, like in Alien Swarm). However, I cannot figure out how to make that happen in a regular manner. The way I am doing it right now is by moving every other object in the game world according to the player's input - and drawing them if their coordinates happen to be on screen. The player stays on the same coordinates all the time. Is there any way to actually move(scroll) the SurfaceView itself? I saw the Scroll widget and the method SurfaceView.scrollBy(int x, int y), but my attempts to implement either of those result in Force Close. Any help is appreciated, thanks in advance!
P.S. Just a note - I am not interested in using open GL for this project.