Trade-Winds/minified/start.js

1 line
677 B
JavaScript

function start(){OS.AddScript("loadControls.js"),OS.AddScript("loadAudio.js"),OS.AddScript("loadGameManager.js"),OS.AddScript("loadGUIs.js"),OS.AddScript("loadPrefabs.js"),OS.AddScript("loadRooms.js"),Oversimplified.DEBUG.showMessages&&console.log("Ran start()")}function pixel(e){return("undefined"!=typeof e?e:1)*OS.S.pixelScale}function secondsWorthOfFrames(e){return e*(1/OS.R[OS.R.currentRoom].stepSpeed)}function randomSmidge(){return pixel(Math.round(Math.randomRange(-10,10)))}function sortNumber(e,r){return e-r}OS.S.defaultStep=1/120,OS.S.numberOfScriptsToLoad=16,OS.S.pixelScale=4,OS.SetCamera({width:pixel(64),height:pixel(64),hBorder:pixel(24),vBorder:pixel(24)});