scrollworld

By grfottox - uploaded on 2009-2-21      1173 views (65 in the last 7 days)      5 votes (0 in the last 7 days)

Tags: demo with-source scrolling extension framework

This scenario contains a ScrollWorld class with which one can add
a lot of objects (also outside the current view/world) and scroll in
any direction unlimitedly. It may serve as a basic framework
for future scrolling games made in Greenfoot.
Suggestions for improvements and/or bug fixes are very welcome!
Usage:
- move Tux with the arrow keys
- scroll the view with: 'A', 'W', 'S', 'D' to respectively left, up, down, right
- center view around Tux with: 'C'


Open the scenario in Greenfoot.
Download the source for this scenario.


Your browser is ignoring the <APPLET> tag.

Some people who like this scenario: Yoinkinator qnanqing mjrb4 FolkertVanVerseveld limefortheworld


This scenario is a member of the following collections: Reusable actors & support classes


Report this scenario as broken or inappropriate.

FolkertVanVerseveld writes (on 2009-2-22):

Very nice dad! I like it! I can't wait for the next version!

Zerg writes (on 2009-2-23):

Nice! I was waiting for someone to finally get this idea working.
My only complaint: off-screen objects do not receive input. I would suggest that this could be fixed by having a separate method that you use for the "act" method, and call this from the world, regardless of if the object is on the screen or not.

mjrb4 writes (on 2009-2-23):

Hey,

Nice idea, and well coded too - it's good to see someone using comprehensive javadoc comments and nice indentation!


If you want to leave a comment on this scenario, you must first log in.


The Greenfoot Network:  Greenfoot.org    Greenfoot Gallery   Greenfoot-Discuss

Our sponsors:

University of Kent Deakin University Sun Microsystems