aboutsummaryrefslogtreecommitdiffstats
path: root/src/objecttypes.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/objecttypes.js')
-rw-r--r--src/objecttypes.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/objecttypes.js b/src/objecttypes.js
index e9f69f0..4dab85c 100644
--- a/src/objecttypes.js
+++ b/src/objecttypes.js
@@ -6,8 +6,7 @@ function Background(x_offset) {
this.x_speed = 10
this.objectType = "background";
-}
-
+}
Background.prototype = Object.create(GameObject.prototype);
Background.prototype.constructor = Background;