[GREENFOOT-192] allow actors to go outside of the world
For certain scenarios it is extremely limiting that actors cannot go outside of the world. Depending on what your doing it is currently only really possible by re-implementing your own Greenfoot functionality (which allows this) on top of the World class.
I think the best option would be by adding more methods to the World class in the API. I'd propose an extra constructor for the world which takes a view size and width World(int width, int height, int cellsize, int viewWidth, int viewHeight) and an extra method setViewPosition(int x, int y) for setting the top left corner of the view for the World. This would then allow scrolling to be built ontop and the user sees fit.
I'd personally prefer the view width/height in pixels as standard but it might make more sense to have it in number of cells.
Issue metadata
- Issue type: Task
- Priority: Medium
- Fix versions: 2.0