| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 (function() { | 4 (function() { |
| 5 'use strict'; | 5 'use strict'; |
| 6 /** | 6 /** |
| 7 * T-Rex runner. | 7 * T-Rex runner. |
| 8 * @param {string} outerContainerId Outer containing element id. | 8 * @param {string} outerContainerId Outer containing element id. |
| 9 * @param {Object} opt_config | 9 * @param {Object} opt_config |
| 10 * @constructor | 10 * @constructor |
| (...skipping 2669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2680 | 2680 |
| 2681 /** | 2681 /** |
| 2682 * Add a new cloud to the horizon. | 2682 * Add a new cloud to the horizon. |
| 2683 */ | 2683 */ |
| 2684 addCloud: function() { | 2684 addCloud: function() { |
| 2685 this.clouds.push(new Cloud(this.canvas, this.spritePos.CLOUD, | 2685 this.clouds.push(new Cloud(this.canvas, this.spritePos.CLOUD, |
| 2686 this.dimensions.WIDTH)); | 2686 this.dimensions.WIDTH)); |
| 2687 } | 2687 } |
| 2688 }; | 2688 }; |
| 2689 })(); | 2689 })(); |
| OLD | NEW |