Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wellsousaaa
GitHub Repository: wellsousaaa/Five-Nights-at-Freddys-Web
Path: blob/main/src/components/Images.js
270 views
1
///SHOW STAGE
2
import Stage from "../media/Textures/Cams/Stage.webp";
3
import Stage_b_c_f from "../media/Textures/Cams/Stage-b-c-f.webp";
4
import Stage_b_f from "../media/Textures/Cams/Stage-b-f.webp";
5
import Stage_c_f from "../media/Textures/Cams/Stage-c-f.webp";
6
import Stage_f from "../media/Textures/Cams/Stage-f.webp";
7
8
///DINNING AREA
9
import DinningArea from "../media/Textures/Cams/DinningArea.webp";
10
import DinningArea_b from "../media/Textures/Cams/DinningArea-b.webp";
11
import DinningArea_c from "../media/Textures/Cams/DinningArea-c.webp";
12
import DinningArea_f from "../media/Textures/Cams/DinningArea-f.webp";
13
import DinningArea_b_c from "../media/Textures/Cams/DinningArea-b-c.webp";
14
import DinningArea_c_f from "../media/Textures/Cams/DinningArea-c-f.webp";
15
import DinningArea_b_f from "../media/Textures/Cams/DinningArea-b-f.webp";
16
import DinningArea_b_c_f from "../media/Textures/Cams/DinningArea-b-c-f.webp";
17
18
///BACKSTAGE
19
import Backstage from "../media/Textures/Cams/Backstage.webp";
20
import Backstage_b from "../media/Textures/Cams/Backstage-b.webp";
21
22
///PIRATE COVE
23
import PirateCove from "../media/Textures/Cams/Pirate_Cove.webp";
24
import PirateCove_1 from "../media/Textures/Cams/Pirate_Cove-1.webp";
25
import PirateCove_2 from "../media/Textures/Cams/Pirate_Cove-2.webp";
26
import PirateCove_3 from "../media/Textures/Cams/Pirate_Cove-3.webp";
27
28
///SUPPLY ROOM
29
import SupplyCloset from "../media/Textures/Cams/SupplyRoom.webp";
30
import SupplyCloset_b from "../media/Textures/Cams/SupplyRoom-b.webp";
31
32
///WEST HALL
33
import WestHall from "../media/Textures/Cams/West_Hall.webp";
34
import WestHall_b from "../media/Textures/Cams/West_Hall-b.webp";
35
import FoxyHallway from "../media/Textures/Foxy-Hallway.webp";
36
37
///WEST HALL CORNER
38
import WHallCorner from "../media/Textures/Cams/WHallCorner.webp";
39
import WHallCorner_b from "../media/Textures/Cams/WHallCorner-b.webp";
40
41
///RESTROOMS
42
import Restrooms from "../media/Textures/Cams/Restrooms.webp";
43
import Restrooms_c from "../media/Textures/Cams/Restrooms-c.webp";
44
import Restrooms_f from "../media/Textures/Cams/Restrooms-f.webp";
45
import Restrooms_c_f from "../media/Textures/Cams/Restrooms-c-f.webp";
46
47
///EAST HALL
48
import EastHall from "../media/Textures/Cams/East_Hall.webp";
49
import EastHall_c from "../media/Textures/Cams/East_Hall-c.webp";
50
import EastHall_f from "../media/Textures/Cams/East_Hall-f.webp";
51
import EastHall_c_f from "../media/Textures/Cams/East_Hall-c-f.webp";
52
53
///EAST HALL CORNER
54
import EHallCorner from "../media/Textures/Cams/EHallCorner.webp";
55
import EHallCorner_c from "../media/Textures/Cams/EHallCorner-c.webp";
56
import EHallCorner_f from "../media/Textures/Cams/EHallCorner-f.webp";
57
58
import Kitchen from "../media/Textures/black.jpg";
59
import Kitchen_c from "../media/Textures/black.jpg";
60
import Kitchen_f from "../media/Textures/black.jpg";
61
import Kitchen_c_f from "../media/Textures/black.jpg";
62
63
const cameraImages = {
64
Stage,
65
Stage_b_c_f,
66
Stage_b_f,
67
Stage_c_f,
68
Stage_f,
69
DinningArea,
70
DinningArea_b_c_f,
71
DinningArea_c_f,
72
DinningArea_b_f,
73
DinningArea_b_c,
74
DinningArea_b,
75
DinningArea_c,
76
DinningArea_f,
77
Backstage,
78
Backstage_b,
79
SupplyCloset,
80
SupplyCloset_b,
81
WestHall,
82
WestHall_b,
83
WHallCorner,
84
WHallCorner_b,
85
Restrooms,
86
Restrooms_c,
87
Restrooms_c_f,
88
Restrooms_f,
89
EastHall,
90
EastHall_c,
91
EastHall_c_f,
92
EastHall_f,
93
EHallCorner,
94
EHallCorner_c,
95
EHallCorner_f,
96
EHallCorner_c_f: EHallCorner_f,
97
PirateCove,
98
PirateCove_1,
99
PirateCove_2,
100
PirateCove_3,
101
Kitchen,
102
Kitchen_c,
103
Kitchen_f,
104
Kitchen_c_f,
105
};
106
107
export default function getCam(animatronics, camera, foxy = "") {
108
let location = camera.trim().replaceAll(" ", "");
109
110
if (location === "W.HallCorner") location = "WHallCorner";
111
if (location === "E.HallCorner") location = "EHallCorner";
112
113
return cameraImages[
114
`${location}${animatronics}${location === "PirateCove" ? foxy : ""}`
115
];
116
}
117
118