I do not know if an API exist for this kind of stuff, but it could be really cool to add one ^^ I think that you should basically add a drawing method which take a rectangle as a parameter and display this rectangle from your original world's representation. For scrolling, just adjust the rectangle. I'm really interested in this kind of work, so let me know how your work progress :) Good luck, Ben On Jan 26, 2011, at 2:11 AM, Aidan Gauland wrote:
Hello,
I am developing a game in Morphic -- nothing serious; just a spare time project -- and I have come to a tricky part: the viewport. So far, I have just put my Morphs in a PasteUpMorph for testing, but now I need to have a viewport to a (game) world that is larger than the screen, and be able to pan/scroll the view around the world. I really have no idea how I could or should do this in Morphic. Maybe subclass PasteUpMorph and override #drawSubmorphs? Can anyone here offer any advice with this?
Regards, Aidan