Rob Colbert
2 years ago
6 changed files with 21 additions and 21 deletions
@ -1,10 +1,10 @@ |
|||
// lib/web-audio.js
|
|||
// lib/nice-audio.js
|
|||
// Copyright (C) 2022 Rob Colbert @[email protected]
|
|||
// License: Apache-2.0
|
|||
|
|||
'use strict'; |
|||
|
|||
export default class WebAudio { |
|||
export default class NiceAudio { |
|||
|
|||
async load ( ) { |
|||
this.music = new Audio('/dist/assets/audio/cyber_pulse.ogg'); |
@ -1,10 +1,10 @@ |
|||
// lib/web-image.js
|
|||
// lib/nice-image.js
|
|||
// Copyright (C) 2022 Rob Colbert @[email protected]
|
|||
// License: Apache-2.0
|
|||
|
|||
'use strict'; |
|||
|
|||
export default class WebImage { |
|||
export default class NiceImage { |
|||
|
|||
async load (url, width, height) { |
|||
this.image = new Image(width, height); |
@ -1,10 +1,10 @@ |
|||
// lib/web-log.js
|
|||
// lib/nice-log.js
|
|||
// Copyright (C) 2022 Rob Colbert @[email protected]
|
|||
// License: Apache-2.0
|
|||
|
|||
'use strict'; |
|||
|
|||
export default class WebLog { |
|||
export default class NiceLog { |
|||
|
|||
constructor (componentName, options) { |
|||
this.componentName = componentName; |
@ -1,10 +1,10 @@ |
|||
// lib/web-sprite.js
|
|||
// lib/nice-sprite.js
|
|||
// Copyright (C) 2022 Rob Colbert @[email protected]
|
|||
// License: Apache-2.0
|
|||
|
|||
'use strict'; |
|||
|
|||
import WebImage from '/dist/js/lib/web-image.js'; |
|||
import NiceImage from '/dist/js/lib/nice-image.js'; |
|||
|
|||
export default class WebSprite { |
|||
|
|||
@ -13,7 +13,7 @@ export default class WebSprite { |
|||
} |
|||
|
|||
async load (url, width, height) { |
|||
this.image = new WebImage(); |
|||
this.image = new NiceImage(); |
|||
return this.image.load(url, width, height); |
|||
} |
|||
|
Loading…
Reference in new issue