Report as inappropriate.
An implementation of a way to scroll through a world too big to fit on screen.
The important classes are ScrollWorld and ScrollActor, so you would do well to read the documentation of those two classes. If you've got further questions, you may leave a comment here (though please, don't post full code here: do that in a discussion).
As a demo, I made a bug that walks around in the world. It is controlled with your mouse and the up/down keys. Feel free to use the demo code in the Bug class, as all of the movement code is in there.
You're free to use this in your own games, but if you do so, I would appreciate giving credit as to where you got the scrolling code from.
26544 views / 47 in the last 7 days
17 votes | 0 in the last 7 days
This scenario is a member of: Reusable actors & support classes, Scrolling games
There is no HTML 5 translation of this scenario available.
View legacy version (requires Java plugin)
This scenarios uses Java features that are not available for use after conversion to HTML 5. Please try the legacy version, which requires the Java plugin to be installed.
Want to leave a comment? You must first log in.
2013/11/1
2015/10/1
2017/2/2
2017/2/4
2017/2/8
2017/11/23
2017/11/23