Moved rm_Ocean "constants" into its creation.
This commit is contained in:
parent
34de633ef3
commit
8e09e8b2a0
13
loadRooms.js
13
loadRooms.js
|
@ -1,10 +1,21 @@
|
||||||
// var rm_TitleScreen = OS.R.Add("Default");
|
// var rm_TitleScreen = OS.R.Add("Default");
|
||||||
// var rm_Ocean = OS.R.Add("Ocean", {
|
// var rm_Ocean = OS.R.Add("Ocean", {
|
||||||
var rm_Ocean = OS.R.Add("Default", {
|
var rm_Ocean = OS.R.Add("Default", {
|
||||||
|
// Putting my room "constants" here.
|
||||||
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.
|
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,
|
height: pixel(64) * 44,
|
||||||
backgroundColor: "#1b2632"
|
backgroundColor: "#1b2632",
|
||||||
|
squaresX: 50,
|
||||||
|
squaresY: 44,
|
||||||
|
squareSize: pixel(64),
|
||||||
|
numberOfIslands: 10,
|
||||||
|
clockTimerCutoff: ((1 / OS.S.defaultStep) * 60) * 5 // 5 minute day.
|
||||||
});
|
});
|
||||||
|
// 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";
|
||||||
|
|
||||||
function loadRooms() {
|
function loadRooms() {
|
||||||
// OS.AddScript("rooms/titleScreen.js");
|
// OS.AddScript("rooms/titleScreen.js");
|
||||||
|
|
Loading…
Reference in New Issue