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
'use strict'; | |
(function () { | |
var RADIANS_IN_A_CIRCLE = 2 * Math.PI; | |
var ONE_DEGREE = RADIANS_IN_A_CIRCLE / 360; | |
var lookup = []; | |
for (var index = 0; index < 360; ++index) { | |
lookup[index] = Math.sin(index * ONE_DEGREE); |
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
'use strict'; | |
(function (){ | |
const RADIANS_IN_A_CIRCLE = 2 * Math.PI; | |
const ONE_DEGREE = RADIANS_IN_A_CIRCLE / 360; | |
let lookup = []; | |
for (let index = 0; index < 360; ++index) { | |
lookup[index] = Math.sin(index * ONE_DEGREE); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/phaser-arcade-physics.min.js"></script> | |
</head> | |
<body> | |
<script> | |
var config = { | |
type: Phaser.AUTO, |
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
taskkill /IM iisexpress.exe /F | |
taskkill /im msbuild.exe /f /t | |
taskkill /im VBCSCompiler.exe /f /t |
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
(function () { | |
'use strict'; | |
pinjector | |
.module('starCastle') | |
.factory( | |
'objectPool', | |
[ | |
objectPool | |
]); |
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
'use strict'; // jshint ignore:line | |
var pinjector = {}; | |
(function () { | |
pinjector.module = module; | |
var modules = {}; | |
function module(name) { |
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
function _play(effect) { | |
if (!areSfxEnabledFlag || !effect) { | |
return; | |
} | |
var buffer = effect.buffer; | |
if (!buffer) { | |
return; | |
} |
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
function _initialiseSoundEffects() { | |
_loadSounds(soundConfiguration.sounds, true); | |
_loadSounds(soundConfiguration.music, false); | |
} | |
function _loadSounds(sounds, areSfx) { | |
for (var soundIndex = 0, soundCount = sounds.length; soundIndex < soundCount; ++soundIndex) { | |
var sound = sounds[soundIndex]; | |
if (areSfx) { |
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
(function () { | |
'use strict'; | |
pinjector | |
.module('starCastle') | |
.factory( | |
'soundConfiguration', | |
[ | |
'baseAsteroidsStarcastleSoundConfiguration', | |
soundConfiguration |
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
SELECT TOP 30 -- You can alter or ditch this if needs be | |
d.[TransactionID], | |
MIN(d.[StartTime]) AS StartTime, | |
MAX( | |
CASE | |
WHEN d.[EndTime] IS NULL | |
OR d.[StartTime] > d.[EndTime] THEN d.[StartTime] | |
ELSE d.[EndTime] | |
END) AS EndTime, | |
DATEDIFF( |