2016-04-05 01:10:40 +02:00
|
|
|
OS.S.defaultStep = 1 / 120;
|
2016-04-05 07:37:01 +02:00
|
|
|
OS.S.pixelScale = 4;
|
2016-04-06 22:36:51 +02:00
|
|
|
OS.SetCamera({
|
|
|
|
width: 64 * OS.S.pixelScale,
|
|
|
|
height: 64 * OS.S.pixelScale,
|
|
|
|
hBorder: 24 * OS.S.pixelScale,
|
|
|
|
vBorder: 24 * OS.S.pixelScale
|
|
|
|
});
|
2016-04-05 01:10:40 +02:00
|
|
|
|
|
|
|
function start()
|
|
|
|
{
|
|
|
|
OS.AddScript("loadControls.js");
|
2016-04-06 16:00:58 +02:00
|
|
|
OS.AddScript("loadGameManager.js");
|
2016-04-05 01:10:40 +02:00
|
|
|
OS.AddScript("loadPrefabs.js");
|
|
|
|
OS.AddScript("loadRooms.js");
|
|
|
|
}
|
2016-04-06 01:33:38 +02:00
|
|
|
|
|
|
|
function randomSmidge() {
|
|
|
|
// Return a random amount between -10 and 10 on the pixel scale.
|
|
|
|
return (Math.round(Math.randomRange(-10, 10)) * OS.S.pixelScale);
|
|
|
|
}
|