File size: 11,839 Bytes
6a7ea1e
a16d218
6a7ea1e
a16d218
 
 
6a7ea1e
a16d218
 
 
 
 
 
 
6a7ea1e
a16d218
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6a7ea1e
a16d218
 
 
 
6a7ea1e
a16d218
 
 
 
6a7ea1e
a16d218
 
 
6a7ea1e
a16d218
 
 
 
 
 
6a7ea1e
 
a16d218
 
 
 
6a7ea1e
 
 
 
a16d218
 
 
 
 
 
 
 
 
6a7ea1e
 
 
a16d218
6a7ea1e
a16d218
 
 
 
 
6a7ea1e
a16d218
 
 
 
 
 
 
 
 
 
6a7ea1e
a16d218
 
 
 
 
 
 
 
 
 
 
 
 
6a7ea1e
a16d218
 
6a7ea1e
a16d218
6a7ea1e
 
a16d218
 
 
 
 
 
6a7ea1e
6a27243
a16d218
 
 
6a27243
a16d218
 
 
 
 
 
6a27243
a16d218
 
6a27243
a16d218
 
 
 
 
 
 
 
 
 
 
 
6a27243
a16d218
6a27243
a16d218
 
 
 
 
 
 
 
 
 
 
 
 
6a7ea1e
a16d218
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6a7ea1e
a16d218
6a7ea1e
 
a16d218
 
6a7ea1e
 
 
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Shy Guy Simulator</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            max-width: 800px;
            margin: 20px auto;
            padding: 20px;
            background-color: #1a1a1a;
            color: #fff;
        }

        #game-container {
            background-color: #2a2a2a;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        }

        #story-text {
            margin-bottom: 20px;
            line-height: 1.6;
            min-height: 100px;
        }

        #choices {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        button {
            padding: 10px 20px;
            background-color: #4a4a4a;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        button:hover {
            background-color: #666;
        }

        #stats {
            margin-top: 20px;
            padding: 10px;
            background-color: #333;
            border-radius: 4px;
        }

        .thought-bubble {
            font-style: italic;
            color: #aaa;
            margin: 10px 0;
        }
    </style>
</head>
<body>
    <div id="game-container">
        <h1>Shy Guy Simulator</h1>
        <div id="stats">
            Confidence: <span id="confidence">0</span>% | 
            Drinks: <span id="drinks">0</span> | 
            Time: <span id="time">8:00 PM</span>
        </div>
        <div id="story-text"></div>
        <div id="choices"></div>
    </div>

    <script>
        class ShyGuyGame {
            constructor() {
                this.stats = {
                    confidence: 0,
                    drinks: 0,
                    time: new Date(2024, 0, 1, 20, 0) // 8:00 PM
                };
                
                this.currentScene = 'start';
                this.thoughts = [
                    "Maybe she won't like me...",
                    "What if I say something stupid?",
                    "Everyone's watching...",
                    "I should probably just go home...",
                    "She looks way out of my league..."
                ];

                this.initialize();
            }

            initialize() {
                this.updateStats();
                this.loadScene(this.currentScene);
                setInterval(() => this.showRandomThought(), 15000);
            }

            showRandomThought() {
                if (this.stats.confidence < 70) {
                    const thoughtText = this.thoughts[Math.floor(Math.random() * this.thoughts.length)];
                    const thoughtBubble = document.createElement('div');
                    thoughtBubble.className = 'thought-bubble';
                    thoughtBubble.textContent = `Inner voice: "${thoughtText}"`;
                    
                    const storyText = document.getElementById('story-text');
                    storyText.insertBefore(thoughtBubble, storyText.firstChild);
                    
                    setTimeout(() => thoughtBubble.remove(), 5000);
                }
            }

            updateStats() {
                document.getElementById('confidence').textContent = this.stats.confidence;
                document.getElementById('drinks').textContent = this.stats.drinks;
                document.getElementById('time').textContent = 
                    this.stats.time.toLocaleTimeString('en-US', { hour: 'numeric', minute: '2-digit' });
            }

            advanceTime(minutes) {
                this.stats.time = new Date(this.stats.time.getTime() + minutes * 60000);
                this.updateStats();
            }

            loadScene(sceneId) {
                const scene = this.scenes[sceneId];
                if (!scene) return;

                document.getElementById('story-text').innerHTML = scene.text;
                
                const choicesContainer = document.getElementById('choices');
                choicesContainer.innerHTML = '';
                
                scene.choices.forEach(choice => {
                    if (!choice.condition || choice.condition(this.stats)) {
                        const button = document.createElement('button');
                        button.textContent = choice.text;
                        button.onclick = () => {
                            if (choice.effect) {
                                choice.effect(this.stats);
                                this.updateStats();
                            }
                            this.loadScene(choice.next);
                        };
                        choicesContainer.appendChild(button);
                    }
                });
            }

            scenes = {
                start: {
                    text: "You're at the homecoming party, standing awkwardly by the snack table. Across the room, you see her - the pretty girl you've been too nervous to talk to all semester. What do you do?",
                    choices: [
                        {
                            text: "Get a drink to calm your nerves",
                            effect: stats => {
                                stats.drinks++;
                                stats.confidence += 10;
                                this.advanceTime(15);
                            },
                            next: 'after_drink'
                        },
                        {
                            text: "Try to move closer to the dance floor",
                            effect: stats => {
                                stats.confidence += 5;
                                this.advanceTime(10);
                            },
                            next: 'dance_floor'
                        },
                        {
                            text: "Stay by the snacks and observe",
                            effect: stats => {
                                this.advanceTime(20);
                            },
                            next: 'observe'
                        }
                    ]
                },
                after_drink: {
                    text: "The drink starts to take effect, making you feel a bit warmer and more relaxed. The music seems more inviting now.",
                    choices: [
                        {
                            text: "Get another drink",
                            effect: stats => {
                                stats.drinks++;
                                stats.confidence += 15;
                                this.advanceTime(15);
                            },
                            next: 'more_drinks'
                        },
                        {
                            text: "Start swaying to the music",
                            effect: stats => {
                                stats.confidence += 10;
                                this.advanceTime(10);
                            },
                            next: 'dancing'
                        }
                    ]
                },
                more_drinks: {
                    text: "You're definitely feeling the drinks now. Your anxiety is lower, but you're also a bit wobbly.",
                    choices: [
                        {
                            text: "Try to approach her",
                            condition: stats => stats.confidence >= 40,
                            effect: stats => this.advanceTime(5),
                            next: 'approach'
                        },
                        {
                            text: "Take a break outside",
                            effect: stats => {
                                stats.confidence -= 10;
                                this.advanceTime(20);
                            },
                            next: 'outside'
                        }
                    ]
                },
                dance_floor: {
                    text: "You're closer to where she's standing now. The music is louder, and people are dancing around you.",
                    choices: [
                        {
                            text: "Start dancing near her group",
                            effect: stats => {
                                stats.confidence += 15;
                                this.advanceTime(15);
                            },
                            next: 'dancing'
                        },
                        {
                            text: "Retreat to get a drink",
                            effect: stats => {
                                stats.drinks++;
                                stats.confidence += 5;
                                this.advanceTime(10);
                            },
                            next: 'after_drink'
                        }
                    ]
                },
                dancing: {
                    text: "You're dancing! Not too badly either. You notice she's glancing in your direction occasionally.",
                    choices: [
                        {
                            text: "Make eye contact and smile",
                            effect: stats => {
                                stats.confidence += 20;
                                this.advanceTime(5);
                            },
                            next: 'eye_contact'
                        },
                        {
                            text: "Keep dancing but avoid eye contact",
                            effect: stats => {
                                stats.confidence += 5;
                                this.advanceTime(15);
                            },
                            next: 'continue_dancing'
                        }
                    ]
                },
                eye_contact: {
                    text: "She smiles back! Your heart is racing, but in a good way.",
                    choices: [
                        {
                            text: "Walk over and say hi",
                            condition: stats => stats.confidence >= 60,
                            next: 'success'
                        },
                        {
                            text: "Panic and get another drink",
                            effect: stats => {
                                stats.drinks++;
                                stats.confidence += 10;
                                this.advanceTime(10);
                            },
                            next: 'more_drinks'
                        }
                    ]
                },
                success: {
                    text: "Congratulations! You managed to overcome your shyness and talk to her. Turns out, she's been hoping you'd come say hi all evening. Sometimes the hardest part is just taking that first step.",
                    choices: [
                        {
                            text: "Play Again",
                            effect: stats => {
                                stats.confidence = 0;
                                stats.drinks = 0;
                                stats.time = new Date(2024, 0, 1, 20, 0);
                            },
                            next: 'start'
                        }
                    ]
                }
            };
        }

        // Start the game
        const game = new ShyGuyGame();
    </script>
</body>
</html>