File size: 12,245 Bytes
a417501 | 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Documentation | Unity NLP Architect</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<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>
<style>
.sidebar {
scrollbar-width: thin;
scrollbar-color: #7c3aed transparent;
}
.sidebar::-webkit-scrollbar {
width: 6px;
}
.sidebar::-webkit-scrollbar-track {
background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
background-color: #7c3aed;
border-radius: 3px;
}
.code-block {
font-family: 'Courier New', monospace;
background: rgba(0,0,0,0.7);
}
.active-nav {
background: rgba(124, 58, 237, 0.2);
border-left: 3px solid #7c3aed;
}
</style>
</head>
<body class="bg-gray-900 text-white min-h-screen">
<!-- Navigation -->
<nav class="bg-gray-800 bg-opacity-80 backdrop-blur-md fixed w-full z-50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex items-center justify-between h-16">
<div class="flex items-center">
<div class="flex-shrink-0">
<i data-feather="code" class="text-purple-400 h-6 w-6"></i>
</div>
<div class="hidden md:block">
<div class="ml-10 flex items-baseline space-x-4">
<a href="index.html" class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Home</a>
<a href="docs.html" class="bg-purple-800 text-white px-3 py-2 rounded-md text-sm font-medium">Docs</a>
<a href="#" class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">API</a>
<a href="#" class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Unity Bridge</a>
</div>
</div>
</div>
<div class="hidden md:block">
<div class="ml-4 flex items-center md:ml-6">
<button class="bg-purple-600 hover:bg-purple-700 text-white px-4 py-2 rounded-md text-sm font-medium flex items-center">
<i data-feather="download" class="mr-2 h-4 w-4"></i> Get Started
</button>
</div>
</div>
<div class="-mr-2 flex md:hidden">
<button type="button" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-white hover:bg-gray-700 focus:outline-none">
<i data-feather="menu"></i>
</button>
</div>
</div>
</div>
</nav>
<div class="pt-20 flex">
<!-- Sidebar -->
<div class="hidden md:block w-64 bg-gray-800 bg-opacity-70 h-screen sticky top-16 overflow-y-auto sidebar">
<div class="p-4">
<div class="mb-8">
<h3 class="text-xs font-semibold text-purple-400 tracking-wider uppercase mb-4">Getting Started</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-300 hover:text-white text-sm block py-2 px-3 rounded active-nav">Introduction</a></li>
<li><a href="#" class="text-gray-300 hover:text-white text-sm block py-2 px-3 rounded">Installation</a></li>
<li><a href="#" class="text-gray-300 hover:text-white text-sm block py-2 px-3 rounded">Quick Start</a></li>
</ul>
</div>
<div class="mb-8">
<h3 class="text-xs font-semibold text-purple-400 tracking-wider uppercase mb-4">Core Concepts</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-300 hover:text-white text-sm block py-2 px-3 rounded">Natural Language Syntax</a></li>
<li><a href="#" class="text-gray-300 hover:text-white text-sm block py-2 px-3 rounded">Game Objects</a></li>
<li><a href="#" class="text-gray-300 hover:text-white text-sm block py-2 px-3 rounded">Components</a></li>
<li><a href="#" class="text-gray-300 hover:text-white text-sm block py-2 px-3 rounded">Physics</a></li>
<li><a href="#" class="text-gray-300 hover:text-white text-sm block py-2 px-3 rounded">UI System</a></li>
</ul>
</div>
<div class="mb-8">
<h3 class="text-xs font-semibold text-purple-400 tracking-wider uppercase mb-4">Advanced</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-300 hover:text-white text-sm block py-2 px-3 rounded">Customizing Output</a></li>
<li><a href="#" class="text-gray-300 hover:text-white text-sm block py-2 px-3 rounded">Extending with Scripts</a></li>
<li><a href="#" class="text-gray-300 hover:text-white text-sm block py-2 px-3 rounded">Performance Optimization</a></li>
</ul>
</div>
<div>
<h3 class="text-xs font-semibold text-purple-400 tracking-wider uppercase mb-4">Examples</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-300 hover:text-white text-sm block py-2 px-3 rounded">2D Platformer</a></li>
<li><a href="#" class="text-gray-300 hover:text-white text-sm block py-2 px-3 rounded">First Person Shooter</a></li>
<li><a href="#" class="text-gray-300 hover:text-white text-sm block py-2 px-3 rounded">Racing Game</a></li>
</ul>
</div>
</div>
</div>
<!-- Main Content -->
<div class="flex-1 p-8">
<div class="max-w-3xl mx-auto">
<h1 class="text-3xl font-bold mb-6">Documentation</h1>
<p class="text-xl text-gray-300 mb-8">
Learn how to use Unity NLP Architect to build games with natural language commands.
</p>
<div class="mb-12">
<h2 class="text-2xl font-bold mb-4 text-purple-400 border-b border-gray-700 pb-2">Getting Started</h2>
<p class="text-gray-300 mb-6">
Unity NLP Architect is a powerful tool that translates your natural language descriptions into Unity game components. This guide will walk you through the installation and basic usage.
</p>
<div class="bg-gray-800 rounded-lg p-6 mb-6">
<h3 class="text-lg font-medium text-white mb-3">Installation</h3>
<p class="text-gray-300 mb-4">Install the Unity NLP Architect plugin via Unity Package Manager:</p>
<div class="code-block p-4 rounded-lg mb-4">
<p class="text-white">1. Open Unity Package Manager (Window > Package Manager)</p>
<p class="text-white">2. Click "+" and select "Add package from git URL..."</p>
<p class="text-white">3. Enter: https://github.com/unity-nlp-architect/package.git</p>
</div>
</div>
<div class="bg-gray-800 rounded-lg p-6">
<h3 class="text-lg font-medium text-white mb-3">Basic Usage</h3>
<p class="text-gray-300 mb-4">After installation, open the NLP Architect window:</p>
<div class="code-block p-4 rounded-lg mb-4">
<p class="text-white">Window > NLP Architect > Open Architect Window</p>
</div>
<p class="text-gray-300 mb-4">Type your game description in natural language:</p>
<div class="code-block p-4 rounded-lg mb-4">
<p class="text-green-400">// Example input:</p>
<p class="text-white">"Create a 2D character that can move left and right with arrow keys and jump with space bar. Add gravity and ground detection."</p>
</div>
</div>
</div>
<div class="mb-12">
<h2 class="text-2xl font-bold mb-4 text-purple-400 border-b border-gray-700 pb-2">Natural Language Syntax</h2>
<p class="text-gray-300 mb-6">
The system understands a wide range of game development concepts expressed in natural language. Here are some common patterns:
</p>
<div class="space-y-6">
<div class="bg-gray-800 rounded-lg p-6">
<h3 class="text-lg font-medium text-white mb-3">Creating Objects</h3>
<p class="text-gray-300 mb-2">Examples:</p>
<ul class="list-disc list-inside text-gray-300 mb-4 space-y-1">
<li>"Create a player character"</li>
<li>"Add a red enemy that follows the player"</li>
<li>"Make a coin pickup with rotation animation"</li>
</ul>
</div>
<div class="bg-gray-800 rounded-lg p-6">
<h3 class="text-lg font-medium text-white mb-3">Movement and Physics</h3>
<p class="text-gray-300 mb-2">Examples:</p>
<ul class="list-disc list-inside text-gray-300 mb-4 space-y-1">
<li>"Make the player move with WASD keys"</li>
<li>"Add jumping with space bar"</li>
<li>"Implement gravity for all characters"</li>
</ul>
</div>
<div class="bg-gray-800 rounded-lg p-6">
<h3 class="text-lg font-medium text-white mb-3">Game Mechanics</h3>
<p class="text-gray-300 mb-2">Examples:</p>
<ul class="list-disc list-inside text-gray-300 mb-4 space-y-1">
<li>"When player touches coin, increase score by 10"</li>
<li>"If player health reaches 0, show game over screen"</li>
<li>"Create a power-up that doubles jump height for 5 seconds"</li>
</ul>
</div>
</div>
</div>
<div class="bg-purple-900 bg-opacity-20 rounded-lg p-6 border border-purple-700">
<div class="flex">
<div class="flex-shrink-0">
<i data-feather="alert-circle" class="h-6 w-6 text-purple-400"></i>
</div>
<div class="ml-3">
<h3 class="text-lg font-medium text-white mb-2">Pro Tip</h3>
<p class="text-gray-300">
Be as specific as possible in your descriptions. Instead of "make a character move," try "create a 2D character that moves left and right with arrow keys at speed 5."
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
feather.replace();
</script>
</body>
</html>
|