Create classes for earth and cloudbackground.
This commit is contained in:
parent
3fbff7890c
commit
8110e87c9d
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue