diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2019-01-03 12:07:47 -0500 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2019-01-03 12:07:47 -0500 |
| commit | 014874367d7800aafbcf3ce624380b19a5cfe781 (patch) | |
| tree | 74be243966f5144ddcedbbd9216fad0dd8519c3b /src/objecttypes.js | |
| parent | dbdfaafc447a4d09377619a7c824b87539453007 (diff) | |
Commit changes
Diffstat (limited to 'src/objecttypes.js')
| -rw-r--r-- | src/objecttypes.js | 3 |
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; |
