Started altering the format of objects according to previous OversimplifiedJS changes.

This commit is contained in:
Robbie Antenesse 2016-04-05 11:39:18 -06:00
parent 9622041129
commit bed09ec643
2 changed files with 18 additions and 2 deletions

View File

@ -1,5 +1,9 @@
var rm_TitleScreen = OS.R.Add("Default", OS.camera.width, OS.camera.height, "");
var rm_Ocean = OS.R.Add("Ocean", 64 * 1000 * OS.S.pixelScale, 64 * 1000 * OS.S.pixelScale, "");
var rm_TitleScreen = OS.R.Add("Default");
var rm_Ocean = OS.R.Add("Ocean", {
width: 64 * 1000 * OS.S.pixelScale,
height: 64 * 1000 * OS.S.pixelScale,
backgroundColor: "#1b2632"
});
function loadRooms() {
OS.AddScript("rooms/titleScreen.js");

12
prefabs/shipPrefab.js Normal file
View File

@ -0,0 +1,12 @@
var ani_ship_d = OS.A.Add("Ship Down", 64, 64, {columns: 2, speed: 1/60, yOffset: 64 * 0});
var ani_ship_dr = OS.A.Add("Ship Down-Right", 64, 64, {columns: 2, speed: 1/60, yOffset: 64 * 1});
var ani_ship_r = OS.A.Add("Ship Right", 64, 64, {columns: 2, speed: 1/60, yOffset: 64 * 2});
var ani_ship_ur = OS.A.Add("Ship Up-Right", 64, 64, {columns: 2, speed: 1/60, yOffset: 64 * 3});
var ani_ship_u = OS.A.Add("Ship Up", 64, 64, {columns: 2, speed: 1/60, yOffset: 64 * 4});
var ani_ship_ul = OS.A.Add("Ship Up-Left", 64, 64, {columns: 2, speed: 1/60, yOffset: 64 * 5});
var ani_ship_l = OS.A.Add("Ship Left", 64, 64, {columns: 2, speed: 1/60, yOffset: 64 * 6});
var ani_ship_dl = OS.A.Add("Ship Down-Left", 64, 64, {columns: 2, speed: 1/60, yOffset: 64 * 7});
function shipPrefab() {}
// var pr_ship = OS.P.Add("Ship", );