Create classes for earth and cloudbackground.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user