mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-24 04:58:59 -05:00
Move screenspace renderable
This commit is contained in:
@@ -3,9 +3,9 @@ local spaceCow = {
|
||||
Identifier = "space-cow",
|
||||
Enabled = true,
|
||||
Name = "Space Cow",
|
||||
FaceCamera = false,
|
||||
FaceCamera = true,
|
||||
Scale = 0.2,
|
||||
CartesianPosition = { 3.0, 0.0, -2.0 },
|
||||
CartesianPosition = { 4.0, 0.0, -2.0 },
|
||||
TexturePath = openspace.absPath("${BASE}/../openspace-installations/spaceship-2021/images/Cow_finished_actually.png"),
|
||||
Tag = { "installation_random" }
|
||||
}
|
||||
@@ -15,9 +15,9 @@ local wrench = {
|
||||
Identifier = "wrench",
|
||||
Enabled = true,
|
||||
Name = "Wrench",
|
||||
FaceCamera = false,
|
||||
FaceCamera = true,
|
||||
Scale = 0.05,
|
||||
CartesianPosition = { 3.0, 0.0, -2.0 },
|
||||
CartesianPosition = { 3.7, 0.0, -2.0 },
|
||||
TexturePath = openspace.absPath("${BASE}/../openspace-installations/spaceship-2021/images/wrench.png"),
|
||||
Tag = { "installation_random" }
|
||||
}
|
||||
@@ -27,7 +27,7 @@ local crosshair = {
|
||||
Identifier = "crosshair",
|
||||
Enabled = false,
|
||||
Name = "Crosshair",
|
||||
FaceCamera = false,
|
||||
FaceCamera = true,
|
||||
Scale = 0.1,
|
||||
CartesianPosition = { 0.0, 0.0, -2.0 },
|
||||
TexturePath = openspace.absPath("${BASE}/../openspace-installations/spaceship-2021/images/crosshair.png"),
|
||||
@@ -39,9 +39,9 @@ local shot = {
|
||||
Identifier = "shot",
|
||||
Enabled = true,
|
||||
Name = "Shot",
|
||||
FaceCamera = false,
|
||||
Scale = 0.3,
|
||||
CartesianPosition = { 0.0, -1.8, -2.0 },
|
||||
FaceCamera = true,
|
||||
Scale = 0.25,
|
||||
CartesianPosition = { 0.0, -1.1, -2.0 },
|
||||
TexturePath = openspace.absPath("${BASE}/../openspace-installations/spaceship-2021/images/laser.png"),
|
||||
Tag = { "installation_random" }
|
||||
}
|
||||
@@ -51,9 +51,9 @@ local bomb = {
|
||||
Identifier = "bomb",
|
||||
Enabled = true,
|
||||
Name = "Bomb",
|
||||
FaceCamera = false,
|
||||
Scale = 0.3,
|
||||
CartesianPosition = { 0.0, -1.8, -2.0 },
|
||||
FaceCamera = true,
|
||||
Scale = 0.2,
|
||||
CartesianPosition = { 0.0, -1.0, -2.0 },
|
||||
TexturePath = openspace.absPath("${BASE}/../openspace-installations/spaceship-2021/images/bomb.png"),
|
||||
Tag = { "installation_random" }
|
||||
}
|
||||
@@ -63,9 +63,9 @@ local ufo = {
|
||||
Identifier = "ufo",
|
||||
Enabled = true,
|
||||
Name = "UFO",
|
||||
FaceCamera = false,
|
||||
Scale = 0.2,
|
||||
CartesianPosition = { 3.0, 0.5, -2.0 },
|
||||
FaceCamera = true,
|
||||
Scale = 0.1,
|
||||
CartesianPosition = { 4.0, 0.3, -2.0 },
|
||||
TexturePath = openspace.absPath("${BASE}/../openspace-installations/spaceship-2021/images/ufo.png"),
|
||||
Tag = { "installation_random" }
|
||||
}
|
||||
@@ -75,9 +75,9 @@ local sputnik = {
|
||||
Identifier = "sputnik",
|
||||
Enabled = true,
|
||||
Name = "Sputnik",
|
||||
FaceCamera = false,
|
||||
Scale = 0.2,
|
||||
CartesianPosition = { -3.0, -1.0, -2.0 },
|
||||
FaceCamera = true,
|
||||
Scale = 0.1,
|
||||
CartesianPosition = { -4.0, -1.0, -2.0 },
|
||||
TexturePath = openspace.absPath("${BASE}/../openspace-installations/spaceship-2021/images/sputnik.png"),
|
||||
Tag = { "installation_random" }
|
||||
}
|
||||
@@ -87,9 +87,9 @@ local tardis = {
|
||||
Identifier = "tardis",
|
||||
Enabled = true,
|
||||
Name = "Tardis",
|
||||
FaceCamera = false,
|
||||
Scale = 0.1,
|
||||
CartesianPosition = { 3.0, 0.0, -2.0 },
|
||||
FaceCamera = true,
|
||||
Scale = 0.05,
|
||||
CartesianPosition = { 3.5, 0.0, -2.0 },
|
||||
TexturePath = openspace.absPath("${BASE}/../openspace-installations/spaceship-2021/images/tardis.png"),
|
||||
Tag = { "installation_random" }
|
||||
}
|
||||
|
||||
@@ -104,9 +104,9 @@ asset.onInitialize(function()
|
||||
openspace.navigation.bindJoystickButton(
|
||||
name,
|
||||
controller.Joystick.Fire,
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.bomb.CartesianPosition', {0.0, -1.5, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.bomb.Scale', 0.3)" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.bomb.CartesianPosition', {0.0, 1.5, -2.000000}, 2.5)" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.bomb.CartesianPosition', {0.0, -1.0, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.bomb.Scale', 0.2)" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.bomb.CartesianPosition', {0.0, 1.0, -2.000000}, 2.5)" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.bomb.Scale', 0.0, 1.25)",
|
||||
"Bomb"
|
||||
);
|
||||
@@ -116,9 +116,9 @@ asset.onInitialize(function()
|
||||
openspace.navigation.bindJoystickButton(
|
||||
name,
|
||||
controller.Joystick.FullTrigger,
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.shot.CartesianPosition', {0.0, -1.8, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.shot.Scale', 0.3)" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.shot.CartesianPosition', {0.0, 1.8, -2.000000}, 1.0)" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.shot.CartesianPosition', {0.0, -1.1, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.shot.Scale', 0.25)" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.shot.CartesianPosition', {0.0, 1.1, -2.000000}, 1.0)" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.shot.Scale', 0.0, 0.5)",
|
||||
"Pew Pew"
|
||||
);
|
||||
@@ -145,36 +145,36 @@ asset.onInitialize(function()
|
||||
openspace.navigation.bindJoystickButton(
|
||||
name,
|
||||
controller.Joystick.ButtomMiniJoystick.Up,
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.space-cow.CartesianPosition', {0.0, -1.5, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.space-cow.CartesianPosition', {0.0, -1.1, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.space-cow.Rotation', {-1.000000, 0.000000, 0.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.space-cow.CartesianPosition', {0.0, 1.5, -2.000000}, 5.0)" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.space-cow.CartesianPosition', {0.0, 0.85, -2.000000}, 5.0)" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.space-cow.Rotation', {1.000000, 0.000000, 0.000000}, 5.0)",
|
||||
"Cow Up"
|
||||
);
|
||||
openspace.navigation.bindJoystickButton(
|
||||
name,
|
||||
controller.Joystick.ButtomMiniJoystick.Right,
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.space-cow.CartesianPosition', {-3.0, 0.0, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.space-cow.CartesianPosition', {-4.0, 0.0, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.space-cow.Rotation', {-1.000000, 0.000000, 0.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.space-cow.CartesianPosition', {3.0, 0.0, -2.000000}, 5.5)" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.space-cow.CartesianPosition', {4.0, 0.0, -2.000000}, 5.5)" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.space-cow.Rotation', {1.000000, 0.000000, 0.000000}, 5.0)",
|
||||
"Cow Right"
|
||||
);
|
||||
openspace.navigation.bindJoystickButton(
|
||||
name,
|
||||
controller.Joystick.ButtomMiniJoystick.Down,
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.space-cow.CartesianPosition', {0.0, 1.5, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.space-cow.CartesianPosition', {0.0, 0.85, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.space-cow.Rotation', {-1.000000, 0.000000, 0.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.space-cow.CartesianPosition', {0.0, -1.5, -2.000000}, 5.0)" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.space-cow.CartesianPosition', {0.0, -1.1, -2.000000}, 5.0)" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.space-cow.Rotation', {1.000000, 0.000000, 0.000000}, 5.0)",
|
||||
"Cow Down"
|
||||
);
|
||||
openspace.navigation.bindJoystickButton(
|
||||
name,
|
||||
controller.Joystick.ButtomMiniJoystick.Left,
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.space-cow.CartesianPosition', {3.0, 0.0, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.space-cow.CartesianPosition', {4.0, 0.0, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.space-cow.Rotation', {-1.000000, 0.000000, 0.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.space-cow.CartesianPosition', {-3.0, 0.0, -2.000000}, 5.5)" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.space-cow.CartesianPosition', {-4.0, 0.0, -2.000000}, 5.5)" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.space-cow.Rotation', {1.000000, 0.000000, 0.000000}, 5.0)",
|
||||
"Cow Left"
|
||||
);
|
||||
@@ -184,36 +184,36 @@ asset.onInitialize(function()
|
||||
openspace.navigation.bindJoystickButton(
|
||||
name,
|
||||
controller.Joystick.LeftMiniJoystick.Up,
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.wrench.CartesianPosition', {0.0, -1.5, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.wrench.CartesianPosition', {0.0, -0.8, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.wrench.Rotation', {-3.000000, 0.000000, 0.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.wrench.CartesianPosition', {0.0, 1.5, -2.000000}, 5.0)" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.wrench.CartesianPosition', {0.0, 0.8, -2.000000}, 5.0)" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.wrench.Rotation', {3.000000, 0.000000, 0.000000}, 5.0)",
|
||||
"Wrench Up"
|
||||
);
|
||||
openspace.navigation.bindJoystickButton(
|
||||
name,
|
||||
controller.Joystick.LeftMiniJoystick.Right,
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.wrench.CartesianPosition', {-3.0, 0.0, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.wrench.CartesianPosition', {-3.7, 0.0, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.wrench.Rotation', {-3.000000, 0.000000, 0.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.wrench.CartesianPosition', {3.0, 0.0, -2.000000}, 5.5)" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.wrench.CartesianPosition', {3.7, 0.0, -2.000000}, 5.5)" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.wrench.Rotation', {3.000000, 0.000000, 0.000000}, 5.5)",
|
||||
"Wrench Right"
|
||||
);
|
||||
openspace.navigation.bindJoystickButton(
|
||||
name,
|
||||
controller.Joystick.LeftMiniJoystick.Down,
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.wrench.CartesianPosition', {0.0, 1.5, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.wrench.CartesianPosition', {0.0, 0.8, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.wrench.Rotation', {-3.000000, 0.000000, 0.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.wrench.CartesianPosition', {0.0, -1.5, -2.000000}, 5.0)" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.wrench.CartesianPosition', {0.0, -0.8, -2.000000}, 5.0)" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.wrench.Rotation', {3.000000, 0.000000, 0.000000}, 5.0)",
|
||||
"Wrench Down"
|
||||
);
|
||||
openspace.navigation.bindJoystickButton(
|
||||
name,
|
||||
controller.Joystick.LeftMiniJoystick.Left,
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.wrench.CartesianPosition', {3.0, 0.0, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.wrench.CartesianPosition', {3.7, 0.0, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.wrench.Rotation', {-3.000000, 0.000000, 0.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.wrench.CartesianPosition', {-3.0, 0.0, -2.000000}, 5.5)" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.wrench.CartesianPosition', {-3.7, 0.0, -2.000000}, 5.5)" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.wrench.Rotation', {3.000000, 0.000000, 0.000000}, 5.5)",
|
||||
"Wrench Left"
|
||||
);
|
||||
@@ -223,29 +223,29 @@ asset.onInitialize(function()
|
||||
openspace.navigation.bindJoystickButton(
|
||||
name,
|
||||
controller.Thruster.BackMiniJoystick.Up,
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.tardis.CartesianPosition', {0.0, -1.5, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.tardis.CartesianPosition', {0.0, 1.5, -2.000000}, 5.0)",
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.tardis.CartesianPosition', {0.0, -0.9, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.tardis.CartesianPosition', {0.0, 0.9, -2.000000}, 5.0)",
|
||||
"Tardis Up"
|
||||
);
|
||||
openspace.navigation.bindJoystickButton(
|
||||
name,
|
||||
controller.Thruster.BackMiniJoystick.Right,
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.tardis.CartesianPosition', {-3.0, 0.0, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.tardis.CartesianPosition', {3.0, 0.0, -2.000000}, 5.5)",
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.tardis.CartesianPosition', {-3.5, 0.0, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.tardis.CartesianPosition', {3.5, 0.0, -2.000000}, 5.5)",
|
||||
"Tardis Right"
|
||||
);
|
||||
openspace.navigation.bindJoystickButton(
|
||||
name,
|
||||
controller.Thruster.BackMiniJoystick.Down,
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.tardis.CartesianPosition', {0.0, 1.5, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.tardis.CartesianPosition', {0.0, -1.5, -2.000000}, 5.0)",
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.tardis.CartesianPosition', {0.0, 0.9, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.tardis.CartesianPosition', {0.0, -0.9, -2.000000}, 5.0)",
|
||||
"Tardis Down"
|
||||
);
|
||||
openspace.navigation.bindJoystickButton(
|
||||
name,
|
||||
controller.Thruster.BackMiniJoystick.Left,
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.tardis.CartesianPosition', {3.0, 0.0, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.tardis.CartesianPosition', {-3.0, 0.0, -2.000000}, 5.5)",
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.tardis.CartesianPosition', {3.5, 0.0, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.tardis.CartesianPosition', {-3.5, 0.0, -2.000000}, 5.5)",
|
||||
"Tardis Left"
|
||||
);
|
||||
|
||||
@@ -254,8 +254,8 @@ asset.onInitialize(function()
|
||||
openspace.navigation.bindJoystickButton(
|
||||
name,
|
||||
controller.Joystick.B,
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.ufo.CartesianPosition', {3.0, 0.5, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.ufo.CartesianPosition', {-3.0, 0.5, -2.000000}, 4.0)",
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.ufo.CartesianPosition', {4.0, 0.3, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.ufo.CartesianPosition', {-4.0, 0.3, -2.000000}, 4.0)",
|
||||
"UFO"
|
||||
);
|
||||
|
||||
@@ -264,8 +264,8 @@ asset.onInitialize(function()
|
||||
openspace.navigation.bindJoystickButton(
|
||||
name,
|
||||
controller.Thruster.E,
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.sputnik.CartesianPosition', {-3.0, -1.0, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.sputnik.CartesianPosition', {3.0, 1.0, -2.000000}, 6.0)",
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.sputnik.CartesianPosition', {-4.0, -1.0, -2.000000})" ..
|
||||
"openspace.setPropertyValueSingle('ScreenSpace.sputnik.CartesianPosition', {4.0, 1.0, -2.000000}, 6.0)",
|
||||
"Sputnik"
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user