2016-04-06 01:59:10 +02:00
|
|
|
var rm_Ocean = OS.R.Add("Default", {
|
2016-04-15 23:08:16 +02:00
|
|
|
// Putting my room "constants" here.
|
2016-04-15 01:09:57 +02:00
|
|
|
width: pixel(64) * 50, //50x45 map of 64x64 squares. This will allow a single pixel on the map to represent a 64x square and fit comfortably on screen.
|
|
|
|
height: pixel(64) * 44,
|
2016-04-15 23:08:16 +02:00
|
|
|
backgroundColor: "#1b2632",
|
|
|
|
squaresX: 50,
|
|
|
|
squaresY: 44,
|
|
|
|
squareSize: pixel(64),
|
|
|
|
numberOfIslands: 10,
|
|
|
|
clockTimerCutoff: ((1 / OS.S.defaultStep) * 60) * 5 // 5 minute day.
|
2016-04-05 19:39:18 +02:00
|
|
|
});
|
2016-04-15 23:08:16 +02:00
|
|
|
// Load external GUI here.
|
|
|
|
rm_Ocean.speedGaugeImg = new Image();
|
|
|
|
rm_Ocean.speedGaugeImg.src = "images/speed_gauge_sheet.png";
|
|
|
|
rm_Ocean.clockImg = new Image();
|
|
|
|
rm_Ocean.clockImg.src = "images/clock_sheet.png";
|
2016-04-05 01:10:40 +02:00
|
|
|
|
|
|
|
function loadRooms() {
|
|
|
|
OS.AddScript("rooms/oceanRoom.js");
|
|
|
|
|
2016-04-06 01:59:10 +02:00
|
|
|
OS.SetRoom(rm_Ocean);
|
2016-04-05 01:10:40 +02:00
|
|
|
}
|