2D World design question
- by Maciek
I'm facing a problem which is probably extremely common in game-design.
Let's assume that we've got a 2D world
The world's size is M x N rect
The world may contain some items in it
The items have (x,y) coords
The world can be browsed via a window that is physically (m x n) large.
The browser window can be zoomed in / out
The browser window can be panned up/down + left right, while in the extents of the world's rect.
How should I go about implementing this? I'm especially concerned about the browser window. Can anyone recommend any good reads ?
This is not a homework - it's more of a task which I've set myself to complete.