Create classes for earth and cloudbackground.

This commit is contained in:
Jan Philipp Timme 2014-11-25 15:23:24 +01:00
parent 3fbff7890c
commit 8110e87c9d
2 changed files with 22 additions and 0 deletions

View File

@ -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);
}
}

View File

@ -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);
}
}