Trade-Winds/start.js

23 lines
555 B
JavaScript
Raw Normal View History

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