This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
tagName: '' | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
tagName: '' | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
tagName: '' | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Component from '@ember/component'; | |
import { action, computed } from '@ember-decorators/object'; | |
import { className, classNames } from '@ember-decorators/component'; | |
import { inject as service } from '@ember-decorators/service'; | |
@classNames('x-audio-out') | |
export default class extends Component { | |
@service audio | |
@className |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Component from '@ember/component'; | |
import { classNames } from '@ember-decorators/component'; | |
import Movable from 'app/mixins/components/movable'; | |
@classNames('grid-item') | |
export default class extends Component.extend(Movable) { | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Component from '@ember/component'; | |
import { classNames } from '@ember-decorators/component'; | |
@classNames('grid') | |
export default class extends Component { | |
didInsertElement() { | |
this.element.innerHTML += Array(1600).join('<div></div>') | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function degreesToRadians(degrees) { | |
return degrees * Math.PI / 180.0; | |
}; | |
export function clamp(min, value, max) { | |
return Math.max(min, Math.min(max, value)); | |
}; | |
export function loadBase64(name, game, src) { | |
const data = new Image(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function degreesToRadians(degrees) { | |
return degrees * Math.PI / 180.0; | |
}; | |
export function clamp(min, value, max) { | |
return Math.max(min, Math.min(max, value)); | |
}; | |
export function loadBase64(name, game, src) { | |
const data = new Image(); | |
data.src = src; | |
game.cache.addCustom(name, src, data); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function degreesToRadians(degrees) { | |
return degrees * Math.PI / 180.0; | |
}; | |
const { Stats: WindowStats, THREE: WindowThree, Ammo: WindowAmmo } = window; | |
export const Stats = WindowStats; | |
export const Three = WindowThree; | |
export const Phys = WindowAmmo; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function degreesToRadians(degrees) { | |
return degrees * Math.PI / 180.0; | |
}; | |
const { Stats: WindowStats, THREE: WindowThree } = window; | |
export const Stats = WindowStats; | |
export const Three = WindowThree; |
NewerOlder