-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsceneData.js
More file actions
97 lines (95 loc) · 3.15 KB
/
Copy pathsceneData.js
File metadata and controls
97 lines (95 loc) · 3.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/**
* Scene Data Module
* Contains data structures for all game scenes
*/
import { InteractiveObject } from './interactiveObjects.js';
export const scenes = {
'startRoom': {
id: 'startRoom',
name: 'Start Room',
description: 'The starting point of the portfolio journey.',
width: 400, // Canvas units
height: 300,
exits: [
{
direction: 'north',
to: 'externalUrl', // Special flag to indicate external URL transition
externalUrl: 'https://aialchemistart.github.io/AIalchemistsLAIR/', // External URL to navigate to
position: { x: 200, y: 0 },
gridX: 93, // Center of north wall
gridY: 0, // Top of the room (exit)
label: 'AI Alchemist\'s Lair' // Descriptive label for the destination
}
// West wall door removed - only using north wall door
],
objects: [
new InteractiveObject('startPortal', 'portal', { x: 180, y: 100 })
],
logic: {
onEnter: () => {
console.log('Entered start room');
// Placeholder for future actions (e.g., play sound)
},
onExit: () => {
console.log('Exited start room');
// Placeholder for future actions (e.g., stop sound)
}
}
},
'circuitSanctum': {
id: 'circuitSanctum',
name: 'Circuit Sanctum',
width: 800,
height: 600,
exits: [
{
direction: 'south',
to: 'startRoom',
position: { x: 400, y: 600 },
gridX: 8, // Center of south wall
gridY: 14 // Bottom of the room (exit)
}
],
objects: [
// Room-specific objects will go here
],
logic: {
onEnter: () => {
console.log('Entered circuit sanctum');
// Placeholder for future actions (e.g., play sound)
},
onExit: () => {
console.log('Exited circuit sanctum');
// Placeholder for future actions (e.g., stop sound)
}
}
},
'neonPhylactery': {
id: 'neonPhylactery',
name: 'Neon Phylactery',
width: 800,
height: 600,
exits: [
{
direction: 'west',
to: 'startRoom',
position: { x: 0, y: 300 },
gridX: 14, // East wall - positioned at (14.0, 6.3) as requested
gridY: 6.3 // Positioned on east wall at 6.3
}
],
objects: [
// Room-specific objects will go here
],
logic: {
onEnter: () => {
console.log('Entered neon phylactery');
// Placeholder for future actions (e.g., play sound, show welcome animation)
},
onExit: () => {
console.log('Exited neon phylactery');
// Placeholder for future actions (e.g., stop sound, save state)
}
}
}
};