From 8110e87c9d2136e1d9559b8ff0ebe215b2f2b241 Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Tue, 25 Nov 2014 15:23:24 +0100 Subject: [PATCH] Create classes for earth and cloudbackground. --- .../spacescooter/background/CloudBackground.java | 11 +++++++++++ .../spacescooter/background/EarthBackground.java | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 src/de/teamteamteam/spacescooter/background/CloudBackground.java create mode 100644 src/de/teamteamteam/spacescooter/background/EarthBackground.java diff --git a/src/de/teamteamteam/spacescooter/background/CloudBackground.java b/src/de/teamteamteam/spacescooter/background/CloudBackground.java new file mode 100644 index 0000000..7a74bc8 --- /dev/null +++ b/src/de/teamteamteam/spacescooter/background/CloudBackground.java @@ -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); + } + +} diff --git a/src/de/teamteamteam/spacescooter/background/EarthBackground.java b/src/de/teamteamteam/spacescooter/background/EarthBackground.java new file mode 100644 index 0000000..f865267 --- /dev/null +++ b/src/de/teamteamteam/spacescooter/background/EarthBackground.java @@ -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); + } + +}