93 lines
3.2 KiB
Python
93 lines
3.2 KiB
Python
#!/usr/bin/env python3
|
|
"""
|
|
🎮 WEB ADVENTURE - QUICK START
|
|
Your multiplayer RPG is ready to play!
|
|
"""
|
|
|
|
import subprocess
|
|
import sys
|
|
|
|
print("""
|
|
╔════════════════════════════════════════════════════════════╗
|
|
║ ║
|
|
║ 🎮 WEB ADVENTURE - Community RPG 🎮 ║
|
|
║ ║
|
|
║ A Multiplayer Browser-Based RPG Game ║
|
|
║ ║
|
|
╚════════════════════════════════════════════════════════════╝
|
|
|
|
📋 Your game is ready to play!
|
|
|
|
Quick Start Options:
|
|
|
|
1. EASIEST: Run launcher.py
|
|
================================
|
|
$ python launcher.py
|
|
|
|
✨ This will:
|
|
• Start the backend server
|
|
• Automatically open the game in your browser
|
|
• Everything happens automatically!
|
|
|
|
2. MANUAL: Start server and open browser yourself
|
|
================================
|
|
Terminal 1:
|
|
$ python -m uvicorn backend:app --reload \\
|
|
--host 0.0.0.0 --port 8000
|
|
|
|
Terminal 2:
|
|
• Open file:///Users/luka/dev/me/web-adventure/index.html
|
|
in your web browser
|
|
|
|
3. CHECK: Run verification script
|
|
================================
|
|
$ python verify.py
|
|
|
|
Verifies all components are set up correctly
|
|
|
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
|
|
📚 DOCUMENTATION:
|
|
|
|
• README.md ............. Complete user guide
|
|
• SETUP.md .............. Detailed setup instructions
|
|
• PROJECT_SUMMARY.md .... Implementation overview
|
|
|
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
|
|
🎮 GAME FEATURES:
|
|
|
|
✅ Multiplayer World - Play with friends online
|
|
✅ 3D Graphics - Beautiful Three.js rendering
|
|
✅ Combat System - Fight monsters and boss
|
|
✅ Leveling System - Gain experience, items
|
|
✅ Building Structures - Create houses, farms, towers
|
|
✅ Resource Gathering - Collect wood and stone
|
|
✅ Boss Mechanic - 30-minute challenge to defeat boss
|
|
✅ Real-time Updates - Live multiplayer synchronization
|
|
✅ Team Bonuses - Structures help nearby players
|
|
|
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
|
|
🚀 LET'S PLAY!
|
|
|
|
Starting in 3 seconds... (or press Ctrl+C to cancel)
|
|
|
|
""")
|
|
|
|
import time
|
|
time.sleep(3)
|
|
|
|
# Run launcher
|
|
try:
|
|
from pathlib import Path
|
|
import os
|
|
os.chdir(Path(__file__).parent)
|
|
subprocess.run([sys.executable, "launcher.py"])
|
|
except KeyboardInterrupt:
|
|
print("\n\n👋 See you next time, adventurer!")
|
|
except Exception as e:
|
|
print(f"\n❌ Error: {e}")
|
|
print("\nTry running: python launcher.py")
|
|
|