Create classes for earth and cloudbackground.

This commit is contained in:
JPT committed 2014-11-25 15:23:24 +01:00
1 parent 3fbff7890c
commit 8110e87c9d
2 files changed
+22

No files matched your search

@@ -0,0 +1,11 @@
package de.teamteamteam.spacescooter.background;
public class CloudBackground extends ScrollingBackground {
public CloudBackground(int x, int y) {
super(x, y);
this.setImage("images/cloudbackground.png");
this.setScrollingSpeed(-1);
}
}
@@ -0,0 +1,11 @@
package de.teamteamteam.spacescooter.background;
public class EarthBackground extends ScrollingBackground {
public EarthBackground(int x, int y) {
super(x, y);
this.setImage("images/earthbackground.png");
this.setScrollingSpeed(-4);
}
}