Back to project page Froggy.
The source code is released under:
GNU General Public License
If you think the Android project Froggy listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.mopgames.GameObjects; /*from w ww .ja v a 2s . c o m*/ public class Background extends Scrollable { public Background(float x, float y, int width, int height, float scrollSpeed) { super(x, y , width * 2, height * 2, scrollSpeed / 3); } public void onRestart(float x, float scrollSpeed) { position.x = x; velocity.x = scrollSpeed / 2; } }