diff --git a/images/island1.png b/images/island.png similarity index 100% rename from images/island1.png rename to images/island.png diff --git a/images/screenshot_4-7-2016_landho.gif b/images/screenshot_4-7-2016_landho.gif new file mode 100644 index 0000000..d1d535b Binary files /dev/null and b/images/screenshot_4-7-2016_landho.gif differ diff --git a/prefabs/islandPrefab.js b/prefabs/islandPrefab.js index 91d43ee..d336b0e 100644 --- a/prefabs/islandPrefab.js +++ b/prefabs/islandPrefab.js @@ -1,6 +1,9 @@ +var ani_island_1 = OS.A.Add("Island 1", 256, 256, {}); + function islandPrefab() {} var pr_island = OS.P.Add("Island", { solid: true, - imageSrc: "images/island.png" + imageSrc: "images/island.png", + animations: [ani_island_1] }); diff --git a/rooms/oceanRoom.js b/rooms/oceanRoom.js index f63ecdc..5ef1185 100644 --- a/rooms/oceanRoom.js +++ b/rooms/oceanRoom.js @@ -17,6 +17,10 @@ rm_Ocean.waveTimer = Math.round(Math.randomRange(30, 150)); rm_Ocean.speedGaugeImg = new Image(); rm_Ocean.speedGaugeImg.src = "images/speed_gauge_sheet.png"; +var island1 = rm_Ocean.AddObject(OS.P["Island"]); +island1.x = (((rm_Ocean.width / OS.S.pixelScale) / 2) + 64) * OS.S.pixelScale; +island1.y = ((rm_Ocean.height / OS.S.pixelScale) / 2) * OS.S.pixelScale; + rm_Ocean.DoFirst = function () { // Reset camera whenever room starts OS.SetCamera({ @@ -52,8 +56,8 @@ rm_Ocean.DrawAbove = function () { // Draw the speed indicator in Bottom Left corner. OS.context.drawImage(rm_Ocean.speedGaugeImg, G.player.currentSpeed * 32, 0, 32, 32, 16, OS.camera.height - 32 - 16, 32, 32); - drawPixelText("Testing 1 2 3!", 0, 0, 0, "white", 4); - drawPixelText("Testing 1 2 3!", 0, 64, 0, "white", 6); + // drawPixelText("Testing 1 2 3!", 0, 0, 0, "white", 4); + // drawPixelText("Testing 1 2 3!", 0, 64, 0, "white", 6); } rm_Ocean.DoLast = function () {