Skip to content

Commit

Permalink
Finishing setup for simple demo
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismbirmingham committed Jul 1, 2023
1 parent 9324a47 commit 44cc970
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions src/scenes/moonSandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,28 @@ scene.addOnIntersectionListener('meteorite', (type, otherNodeId) => {
console.log('meteorite may have life!', type, otherNodeId);
const visible = type === 'start';
setNodeVisible('life indicator', visible);
if (visible) alert('You found a meteorite! It may have life!');
if (visible) alert('You found a meteorite rock! It may have life! Bring this to the container for further study.');
}, 'sciencepad');
scene.addOnIntersectionListener('basalt', (type, otherNodeId) => {
console.log('basalt may have life!', type, otherNodeId);
const visible = type === 'start';
setNodeVisible('nolife indicator', visible);
if (visible) alert('You found a basalt! There does not appear to be life here.');
if (visible) alert('You found a basalt rock! There does not appear to be life here. Try another rock.');
}, 'sciencepad');
scene.addOnIntersectionListener('anorthosite', (type, otherNodeId) => {
console.log('anorthosite may have life!', type, otherNodeId);
const visible = type === 'start';
setNodeVisible('nolife indicator', visible);
if (visible) alert('You found a anorthosite! There does not appear to be life here.');
if (visible) alert('You found a anorthosite rock! There does not appear to be life here. Try another rock.');
}, 'sciencepad');
scene.addOnIntersectionListener('breccia', (type, otherNodeId) => {
console.log('breccia may have life!', type, otherNodeId);
const visible = type === 'start';
setNodeVisible('nolife indicator', visible);
if (visible) alert('You found a breccia! There does not appear to be life here.');
if (visible) alert('You found a breccia rock! There does not appear to be life here. Try another rock.');
}, 'sciencepad');
`;

Expand Down Expand Up @@ -77,7 +77,7 @@ const SOLARPANEL_ORIGIN: ReferenceFrame = {

const WALKWAY_ORIGIN: ReferenceFrame = {
position: Vector3.centimeters(50, 0, 65),
scale: { x: 8, y: 8, z: 8 }
scale: { x: 12, y: 12, z: 12 }
};

const COMMSTOWER_ORIGIN: ReferenceFrame = {
Expand All @@ -87,19 +87,19 @@ const COMMSTOWER_ORIGIN: ReferenceFrame = {

const HABITAT_ORIGIN: ReferenceFrame = {
position: Vector3.centimeters(50, 0, 95),
scale: { x: 8, y: 8, z: 8 },
scale: { x: 12, y: 12, z: 12 },
orientation: Rotation.eulerDegrees(0, 180, 0)
};

const RESEARCH_HABITAT_ORIGIN: ReferenceFrame = {
position: Vector3.centimeters(50, 0, 35),
scale: { x: 8, y: 8, z: 8 },
scale: { x: 12, y: 12, z: 12 },
orientation: Rotation.eulerDegrees(0, 180, 0)
};

const CONTROL_HABITAT_ORIGIN: ReferenceFrame = {
position: Vector3.centimeters(50, 0, 5),
scale: { x: 8, y: 8, z: 8 },
scale: { x: 12, y: 12, z: 12 },
orientation: Rotation.eulerDegrees(0, 180, 0)
};

Expand Down Expand Up @@ -183,7 +183,7 @@ export const Moon_Sandbox: Scene = {
'lifescience': {
type: 'from-space-template',
templateId: 'lifescience',
name: tr('1.2.2.8 Life Science Pack'),
name: tr('Life Science Pack'),
startingOrigin: LIFESCIENCE_ORIGIN,
origin: LIFESCIENCE_ORIGIN,
editable: true,
Expand All @@ -210,7 +210,7 @@ export const Moon_Sandbox: Scene = {
'sciencepad': {
type: 'from-space-template',
templateId: 'sciencepad',
name: tr('1.2.2.6 Science Pad'),
name: tr('Science Pad'),
startingOrigin: SCIENCEPAD_ORIGIN,
origin: SCIENCEPAD_ORIGIN,
visible: true,
Expand All @@ -234,7 +234,7 @@ export const Moon_Sandbox: Scene = {
'botguy': {
type: 'from-space-template',
templateId: 'botguy',
name: tr('1.2.2.3 botguy'),
name: tr('Space Bot Guy'),
startingOrigin: BOTGUY_ORIGIN,
origin: BOTGUY_ORIGIN,
visible: true,
Expand All @@ -243,7 +243,7 @@ export const Moon_Sandbox: Scene = {
'solarpanel': {
type: 'from-space-template',
templateId: 'solarpanel',
name: tr('1.2.2.4 Solar Panel'),
name: tr('Solar Panel'),
startingOrigin: SOLARPANEL_ORIGIN,
origin: SOLARPANEL_ORIGIN,
visible: true,
Expand All @@ -252,52 +252,52 @@ export const Moon_Sandbox: Scene = {
'walkway': {
type: 'from-space-template',
templateId: 'walkway',
name: tr('1.2.2.2 walkway'),
name: tr('Walkway'),
startingOrigin: WALKWAY_ORIGIN,
origin: WALKWAY_ORIGIN,
visible: true,
visible: false,
editable: true,
},
'commstower': {
type: 'from-space-template',
templateId: 'commstower',
name: tr('1.2.2.3 Comms Tower'),
name: tr('Comms Tower'),
startingOrigin: COMMSTOWER_ORIGIN,
origin: COMMSTOWER_ORIGIN,
visible: true,
visible: false,
editable: true,
},
'habitat': {
type: 'from-space-template',
templateId: 'habitat',
name: tr('1.2.2.1 Human Habitat'),
name: tr('Human Living Habitat'),
startingOrigin: HABITAT_ORIGIN,
origin: HABITAT_ORIGIN,
visible: true,
visible: false,
editable: true,
},
'research_habitat': {
type: 'from-space-template',
templateId: 'research_habitat',
name: tr('1.2.2.1 Human Research'),
name: tr('Human Research Habitat'),
startingOrigin: RESEARCH_HABITAT_ORIGIN,
origin: RESEARCH_HABITAT_ORIGIN,
visible: true,
visible: false,
editable: true,
},
'control_habitat': {
type: 'from-space-template',
templateId: 'control_habitat',
name: tr('1.2.2.1 Human Control Station'),
name: tr('Human Control/Comms Station Habitat'),
startingOrigin: CONTROL_HABITAT_ORIGIN,
origin: CONTROL_HABITAT_ORIGIN,
visible: true,
visible: false,
editable: true,
},
'life indicator': {
type: 'object',
geometryId: 'indicator',
name: tr('life Indicator Light'),
name: tr('Life Indicator Light'),
visible: false,
origin: {
position: Vector3.centimeters(-10, 4, 110)
Expand Down

0 comments on commit 44cc970

Please sign in to comment.