File size: 4,300 Bytes
f8ae288
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53a7a09
 
f8ae288
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>SakuraScript Engine  🌸</title>
    <link rel="stylesheet" href="style.css">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
</head>
<body class="bg-pink-50 text-gray-800 font-sans">
    <div id="app" class="container mx-auto max-w-4xl h-screen flex flex-col">
        <!-- Background Layer -->
        <div id="background-container" class="absolute inset-0 z-0 overflow-hidden">
            <img id="background-image" class="w-full h-full object-cover transition-opacity duration-500" src="http://static.photos/nature/1200x630/42" alt="Scene Background">
        </div>

        <!-- Character Layer -->
        <div id="character-container" class="relative z-10 flex-grow flex items-end justify-center">
            <div id="character-left" class="w-1/2 h-full flex items-end justify-center">
                <img id="char-left" class="max-h-full transition-all duration-300" style="opacity: 0;" src="" alt="Left Character">
            </div>
            <div id="character-right" class="w-1/2 h-full flex items-end justify-center">
                <img id="char-right" class="max-h-full transition-all duration-300" style="opacity: 0;" src="" alt="Right Character">
            </div>
        </div>

        <!-- Text Box Layer -->
        <div id="textbox-container" class="relative z-20 bg-white bg-opacity-90 rounded-t-lg shadow-lg p-6 mb-4 transition-all duration-300">
            <div id="nameplate" class="absolute -top-4 left-6 bg-pink-500 text-white px-4 py-1 rounded-full font-bold"></div>
            <div id="text-display" class="text-lg leading-relaxed min-h-24"></div>
            <div id="next-indicator" class="absolute bottom-2 right-4 text-pink-500 animate-bounce hidden">
                <i data-feather="chevron-down"></i>
            </div>
        </div>

        <!-- Choice Box (Hidden by default) -->
        <div id="choice-container" class="hidden relative z-30 bg-white bg-opacity-90 rounded-lg shadow-lg p-6 mb-4">
            <div class="text-center font-bold text-xl mb-4">Make your choice:</div>
            <div id="choices" class="space-y-2"></div>
        </div>

        <!-- Menu Button -->
        <button id="menu-button" class="absolute top-4 right-4 bg-white bg-opacity-80 rounded-full p-3 shadow-lg z-40 hover:bg-opacity-100 transition-all">
<i data-feather="menu"></i>
        </button>

        <!-- Menu Panel (Hidden by default) -->
        <div id="menu-panel" class="hidden absolute inset-0 bg-black bg-opacity-70 z-50 flex items-center justify-center">
            <div class="bg-white rounded-lg p-6 w-80">
                <h2 class="text-xl font-bold mb-4">Menu</h2>
                <div class="space-y-3">
                    <button id="save-btn" class="w-full bg-pink-100 hover:bg-pink-200 text-pink-700 py-2 rounded flex items-center justify-center">
                        <i data-feather="save" class="mr-2"></i> Save Game
                    </button>
                    <button id="load-btn" class="w-full bg-pink-100 hover:bg-pink-200 text-pink-700 py-2 rounded flex items-center justify-center">
                        <i data-feather="folder" class="mr-2"></i> Load Game
                    </button>
                    <button id="settings-btn" class="w-full bg-pink-100 hover:bg-pink-200 text-pink-700 py-2 rounded flex items-center justify-center">
                        <i data-feather="settings" class="mr-2"></i> Settings
                    </button>
                    <button id="close-menu" class="w-full bg-gray-100 hover:bg-gray-200 text-gray-700 py-2 rounded flex items-center justify-center">
                        <i data-feather="x" class="mr-2"></i> Close Menu
                    </button>
                </div>
            </div>
        </div>
    </div>

    <script src="components/engine-ui.js"></script>
    <script src="script.js"></script>
    <script>
        feather.replace();
    </script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>