aboutsummaryrefslogtreecommitdiffstats
path: root/src/objecttypes.js
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2019-01-03 12:07:47 -0500
committerJan Tuomi <jans.tuomi@gmail.com>2019-01-03 12:07:47 -0500
commit014874367d7800aafbcf3ce624380b19a5cfe781 (patch)
tree74be243966f5144ddcedbbd9216fad0dd8519c3b /src/objecttypes.js
parentdbdfaafc447a4d09377619a7c824b87539453007 (diff)
Commit changes
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;