Report as inappropriate.

Grfottox_200x250_thumb

grfottox presents ...

2009/2/21

scrollworld

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'

3962 views / 10 in the last 7 days

8 votes | 0 in the last 7 days

Tags: demo with-source scrolling extension framework

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


open in greenfoot
Your browser is ignoring the <APPLET> tag.
Very nice dad! I like it! I can't wait for the next version!
Hydra_fullZerg

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.
Smallmjrb4

2009/2/23

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

2010/7/27

I noticed the up/down scrolling is backwards? Or is that just me?
No_avatar_thumbannekm21

2010/9/17

nice thought
No_avatar_thumbAlexDragen2

2011/8/4

thnks thanks thanks !! XD

Want to leave a comment? You must first log in.

Who likes this?

No_avatar_thumb Person_thumb Logo_thumb Face4_thumb Aaaargh_thumb Small_thumb Mp_folkert_thumb Libertarian_freedom_thumb