File size: 5,000 Bytes
bca5fa3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>3D Walker Simulator</title>
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    <link rel="stylesheet" href="style.css">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
</head>
<body class="bg-black text-white overflow-hidden">
    <!-- Loading Screen -->
    <div id="loadingScreen" class="fixed inset-0 bg-gradient-to-b from-gray-900 to-black z-50 flex items-center justify-center">
        <div class="text-center">
            <div class="mb-8">
                <div class="w-32 h-32 mx-auto border-4 border-blue-500 border-t-transparent rounded-full animate-spin"></div>
            </div>
            <h1 class="text-4xl font-bold mb-4 bg-gradient-to-r from-blue-400 to-purple-500 bg-clip-text text-transparent">3D Walker Simulator</h1>
            <p class="text-gray-400">Loading world...</p>
        </div>
    </div>

    <!-- Game Canvas -->
    <canvas id="gameCanvas" class="fixed inset-0"></canvas>

    <!-- HUD Overlay -->
    <div id="hud" class="fixed inset-0 pointer-events-none hidden">
        <!-- Crosshair -->
        <div class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2">
            <div class="w-4 h-4 border-2 border-white/50 rounded-full"></div>
        </div>

        <!-- Mini Map -->
        <div class="absolute top-4 right-4 w-48 h-48 bg-black/50 backdrop-blur-sm rounded-lg border border-white/20 p-2">
            <canvas id="miniMap" class="w-full h-full rounded"></canvas>
        </div>

        <!-- Stats Panel -->
        <div class="absolute top-4 left-4 bg-black/50 backdrop-blur-sm rounded-lg border border-white/20 p-4">
            <div class="flex items-center gap-2 mb-2">
                <i data-feather="map-pin" class="w-4 h-4 text-green-400"></i>
                <span class="text-sm">Position: <span id="position">0, 0</span></span>
            </div>
            <div class="flex items-center gap-2 mb-2">
                <i data-feather="trending-up" class="w-4 h-4 text-blue-400"></i>
                <span class="text-sm">Speed: <span id="speed">0</span> km/h</span>
            </div>
            <div class="flex items-center gap-2">
                <i data-feather="clock" class="w-4 h-4 text-yellow-400"></i>
                <span class="text-sm">Time: <span id="gameTime">12:00</span></span>
            </div>
        </div>

        <!-- Controls Help -->
        <div class="absolute bottom-4 left-4 bg-black/50 backdrop-blur-sm rounded-lg border border-white/20 p-4">
            <h3 class="font-semibold mb-2 text-sm">Controls</h3>
            <div class="text-xs space-y-1 text-gray-300">
                <div><kbd class="px-1 py-0.5 bg-gray-700 rounded">W A S D</kbd> Move</div>
                <div><kbd class="px-1 py-0.5 bg-gray-700 rounded">Mouse</kbd> Look Around</div>
                <div><kbd class="px-1 py-0.5 bg-gray-700 rounded">Shift</kbd> Run</div>
                <div><kbd class="px-1 py-0.5 bg-gray-700 rounded">Space</kbd> Jump</div>
            </div>
        </div>

        <!-- Action Buttons -->
        <div class="absolute bottom-4 right-4 pointer-events-auto">
            <button id="toggleMusic" class="bg-purple-600 hover:bg-purple-700 px-4 py-2 rounded-lg flex items-center gap-2 transition-colors mb-2">
                <i data-feather="volume-2" class="w-4 h-4"></i>
                <span>Music</span>
            </button>
            <button id="togglePause" class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded-lg flex items-center gap-2 transition-colors">
                <i data-feather="pause" class="w-4 h-4"></i>
                <span>Pause</span>
            </button>
        </div>
    </div>

    <!-- Start Screen -->
    <div id="startScreen" class="fixed inset-0 bg-gradient-to-b from-gray-900 to-black z-40 flex items-center justify-center">
        <div class="text-center max-w-2xl px-8">
            <h1 class="text-6xl font-bold mb-4 bg-gradient-to-r from-blue-400 to-purple-500 bg-clip-text text-transparent">3D Walker Simulator</h1>
            <p class="text-xl text-gray-400 mb-8">Explore the open world in third person</p>
            <button id="startButton" class="bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 px-8 py-4 rounded-lg text-xl font-semibold transition-all transform hover:scale-105">
                Start Walking
            </button>
        </div>
    </div>

    <script src="style.css"></script>
    <script src="script.js"></script>
    <script>feather.replace();</script>
<script src="https://deepsite.hf.co/deepsite-badge.js"></script>
</body>
</html>