Dataset Viewer
Auto-converted to Parquet Duplicate
_source_dataset
stringclasses
12 values
instruction
stringlengths
561
3.42k
response
stringlengths
33
13.1M
project_dota2_claude
Implement the file `README.md` for a Three.js / React Three Fiber 3D project (Dota2_Claude). ## File Info - Path: `README.md` - Language: MARKDOWN - Size: 72 lines, 2,989 characters - Directory: `root/` ## Exports Module exports ## Imports - None ## Sibling Files - None ## Requirements - Complete, production-ready...
```markdown # DotAI 2 A dark-fantasy browser MOBA — Dota 2, reforged from scratch by a neural network. Built with **TypeScript + Vite + Three.js**. No original Dota 2 assets are used: every model, texture, icon and effect is generated procedurally in code. ## Run ```bash npm install npm run dev ``` Open the printed...
project_dota2_claude
Implement the file `index.html` for a Three.js / React Three Fiber 3D project (Dota2_Claude). ## File Info - Path: `index.html` - Language: HTML - Size: 14 lines, 572 characters - Directory: `root/` ## Exports Types: html ## Imports - None ## Sibling Files - None ## Requirements - Complete, production-ready HTML c...
```html <!doctype html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>DotAI 2</title> <link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><rect width='100' height='100...
project_dota2_claude
Implement the file `package.json` for a Three.js / React Three Fiber 3D project (Dota2_Claude). ## File Info - Path: `package.json` - Language: JSON - Size: 24 lines, 483 characters - Directory: `root/` ## Exports Module exports ## Imports - None ## Sibling Files - None ## Requirements - Complete, production-ready...
```json { "name": "dotai2", "private": true, "version": "1.0.0", "type": "module", "description": "DotAI 2 - a dark fantasy browser MOBA", "scripts": { "dev": "vite", "build": "vite build", "preview": "vite preview", "typecheck": "tsc --noEmit" }, "dependencies": { "latest": "^0.2.0"...
project_dota2_claude
Implement the file `src/config/heroes.ts` for a Three.js / React Three Fiber 3D project (Dota2_Claude). ## File Info - Path: `src/config/heroes.ts` - Language: TYPESCRIPT - Size: 392 lines, 18,143 characters - Directory: `src/config/` ## Exports Functions: heroById; Constants: HEROES ## Imports - `./types` -> `src/c...
```typescript import { HeroDef } from './types'; // 10 heroes of DotAI 2 — parody analogues with distorted names. export const HEROES: HeroDef[] = [ { id: 'pajik', name: 'Pajik the Hook Butcher', role: 'Tank', lore: 'A bloated horror from the Gloom Abattoir who drags dinner home on a chain.', att...
project_dota2_claude
Implement the file `src/config/map.ts` for a Three.js / React Three Fiber 3D project (Dota2_Claude). ## File Info - Path: `src/config/map.ts` - Language: TYPESCRIPT - Size: 149 lines, 4,511 characters - Directory: `src/config/` ## Exports Components: FOUNTAIN, CREEP_WAVE, ECONOMY, ANCIENT_STATS, TOWER_STATS, RESPAWN,...
```typescript import { CreepDef, Team, Vec2 } from './types'; // ---- World / map configuration ---- // Coordinates: x → east, z → south (screen-down). Dawnward base is bottom-left // (-x, +z), Gloomfall base is top-right (+x, -z). The river runs along the // x === z diagonal (top-left to bottom-right). export const ...
project_dota2_claude
Implement the file `src/config/types.ts` for a Three.js / React Three Fiber 3D project (Dota2_Claude). ## File Info - Path: `src/config/types.ts` - Language: TYPESCRIPT - Size: 67 lines, 1,462 characters - Directory: `src/config/` ## Exports Interfaces: Vec2, AbilityDef, HeroDef, CreepDef; Types: Team, DamageType, Ab...
```typescript // ---- Shared config types for DotAI 2 ---- export type Team = 'dawnward' | 'gloomfall' | 'neutral'; export type DamageType = 'physical' | 'magical' | 'pure'; export type AbilityTargetMode = 'point' | 'unit' | 'self' | 'passive'; export type HeroRole = 'Tank' | 'Carry' | 'Mage' | 'Assassin' | 'Support'; ...
project_dota2_claude
Implement the file `src/core/Game.ts` for a Three.js / React Three Fiber 3D project (Dota2_Claude). ## File Info - Path: `src/core/Game.ts` - Language: TYPESCRIPT - Size: 526 lines, 18,651 characters - Directory: `src/core/` ## Exports Classes: Game; Interfaces: Scheduled ## Imports - `three` (external package) - `t...
```typescript import * as THREE from 'three'; import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer.js'; import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass.js'; import { UnrealBloomPass } from 'three/examples/jsm/postprocessing/UnrealBloomPass.js'; import { OutputPass } ...
project_dota2_claude
Implement the file `src/core/GameApp.ts` for a Three.js / React Three Fiber 3D project (Dota2_Claude). ## File Info - Path: `src/core/GameApp.ts` - Language: TYPESCRIPT - Size: 16 lines, 366 characters - Directory: `src/core/` ## Exports Classes: GameApp ## Imports - `./Game` -> `src/core/Game.ts` (Classes: Game; In...
```typescript import { Game } from './Game'; import { HeroSelect } from '../ui/HeroSelect'; // App lifecycle: hero select screen → match. export class GameApp { private root: HTMLElement; private game: Game | null = null; constructor(root: HTMLElement) { this.root = root; new HeroSelect(root, (heroId) =...
project_dota2_claude
Implement the file `src/core/Unit.ts` for a Three.js / React Three Fiber 3D project (Dota2_Claude). ## File Info - Path: `src/core/Unit.ts` - Language: TYPESCRIPT - Size: 300 lines, 7,395 characters - Directory: `src/core/` ## Exports Classes: Unit; Interfaces: Buff, Order, AbilityState, PendingCast, PassiveFlags; Ty...
```typescript import * as THREE from 'three'; import { AbilityDef, DamageType, HeroDef, Team } from '../config/types'; import { ECONOMY } from '../config/map'; export type UnitKind = 'hero' | 'creep' | 'tower' | 'building' | 'ward' | 'neutral'; export type BuffKind = | 'stun' | 'root' | 'slow' | 'haste' | 'armor' |...
project_dota2_claude
Implement the file `src/core/UnitFactory.ts` for a Three.js / React Three Fiber 3D project (Dota2_Claude). ## File Info - Path: `src/core/UnitFactory.ts` - Language: TYPESCRIPT - Size: 410 lines, 14,475 characters - Directory: `src/core/` ## Exports Functions: mat, box, sphere, cyl, cone, buildHeroMesh, buildCreepMes...
```typescript import * as THREE from 'three'; import { HeroDef, Team } from '../config/types'; // Procedural low-poly meshes for every unit type. No external assets — // silhouettes are built from primitives, tinted per hero/faction. const TEAM_COLORS: Record<Team, number> = { dawnward: 0x3f7a3a, gloomfall: 0x7a2...
project_dota2_claude
Implement the file `src/core/math.ts` for a Three.js / React Three Fiber 3D project (Dota2_Claude). ## File Info - Path: `src/core/math.ts` - Language: TYPESCRIPT - Size: 58 lines, 1,646 characters - Directory: `src/core/` ## Exports Functions: dist2d, clamp, lerp, randRange, pick, shuffle, distToSegment, distToPolyl...
```typescript import { Vec2 } from '../config/types'; export function dist2d(ax: number, az: number, bx: number, bz: number): number { const dx = bx - ax; const dz = bz - az; return Math.sqrt(dx * dx + dz * dz); } export function clamp(v: number, min: number, max: number): number { return v < min ? min : v > ...
project_dota2_claude
Implement the file `src/main.ts` for a Three.js / React Three Fiber 3D project (Dota2_Claude). ## File Info - Path: `src/main.ts` - Language: TYPESCRIPT - Size: 7 lines, 187 characters - Directory: `src/` ## Exports Module exports ## Imports - `./core/GameApp` -> `src/core/GameApp.ts` (Classes: GameApp) ## Sibling ...
```typescript import './styles.css'; import { GameApp } from './core/GameApp'; const root = document.getElementById('app'); if (!root) throw new Error('Missing #app root element'); new GameApp(root); ```
project_dota2_claude
Implement the file `src/scene/SceneBuilder.ts` for a Three.js / React Three Fiber 3D project (Dota2_Claude). ## File Info - Path: `src/scene/SceneBuilder.ts` - Language: TYPESCRIPT - Size: 505 lines, 18,283 characters - Directory: `src/scene/` ## Exports Components: TEX_SIZE; Functions: worldToCanvas, paintTerrainCan...
```typescript import * as THREE from 'three'; import { LANE_PATHS, MAP_HALF, NEUTRAL_CAMPS, RIVER_HALF_WIDTH, BASES } from '../config/map'; import { Vec2 } from '../config/types'; import { distToPolyline, randRange } from '../core/math'; // Builds the whole static battlefield: terrain, river, forests, ruins, // torche...
project_dota2_claude
Implement the file `src/styles.css` for a Three.js / React Three Fiber 3D project (Dota2_Claude). ## File Info - Path: `src/styles.css` - Language: CSS - Size: 682 lines, 12,767 characters - Directory: `src/` ## Exports Module exports ## Imports - None ## Sibling Files - `src/main.ts` ## Requirements - Complete, p...
```css /* ---- DotAI 2: dark fantasy UI ---- */ :root { --gold: #c9a45c; --gold-dim: #8a6d3b; --panel-bg: linear-gradient(180deg, rgba(32, 26, 18, 0.96), rgba(16, 12, 8, 0.98)); --panel-border: 1px solid #5e4a28; } * { margin: 0; padding: 0; box-sizing: border-box; } html, body { width: 100%; height...
project_dota2_claude
Implement the file `src/systems/AbilitySystem.ts` for a Three.js / React Three Fiber 3D project (Dota2_Claude). ## File Info - Path: `src/systems/AbilitySystem.ts` - Language: TYPESCRIPT - Size: 788 lines, 31,003 characters - Directory: `src/systems/` ## Exports Classes: AbilitySystem; Interfaces: CastOpts, Zone; Typ...
```typescript import * as THREE from 'three'; import { Unit } from '../core/Unit'; import { AbilityDef } from '../config/types'; import type { Game } from '../core/Game'; export type CastResult = 'ok' | 'cooldown' | 'mana' | 'range' | 'invalid' | 'pending' | 'passive' | 'stunned'; export interface CastOpts { point?...
project_dota2_claude
Implement the file `src/systems/BotAISystem.ts` for a Three.js / React Three Fiber 3D project (Dota2_Claude). ## File Info - Path: `src/systems/BotAISystem.ts` - Language: TYPESCRIPT - Size: 138 lines, 4,731 characters - Directory: `src/systems/` ## Exports Classes: BotAISystem; Types: BotState ## Imports - `../conf...
```typescript import { BASES, lanePathFor, TOWER_SPOTS } from '../config/map'; import { Unit } from '../core/Unit'; import type { Game } from '../core/Game'; type BotState = 'lane' | 'fight' | 'retreat' | 'heal'; // Hero bot AI: pick a lane, push with the creep wave, harass enemies, // use abilities, retreat when hur...
project_dota2_claude
Implement the file `src/systems/CameraController.ts` for a Three.js / React Three Fiber 3D project (Dota2_Claude). ## File Info - Path: `src/systems/CameraController.ts` - Language: TYPESCRIPT - Size: 75 lines, 2,295 characters - Directory: `src/systems/` ## Exports Classes: CameraController ## Imports - `three` (ex...
```typescript import * as THREE from 'three'; import { clamp } from '../core/math'; import { MAP_HALF } from '../config/map'; // Dota-style isometric RTS camera: WASD pan, edge pan, wheel zoom, // Space centers on the player's hero. export class CameraController { camera: THREE.PerspectiveCamera; target = new THRE...
project_dota2_claude
Implement the file `src/systems/CombatSystem.ts` for a Three.js / React Three Fiber 3D project (Dota2_Claude). ## File Info - Path: `src/systems/CombatSystem.ts` - Language: TYPESCRIPT - Size: 217 lines, 8,059 characters - Directory: `src/systems/` ## Exports Classes: CombatSystem; Interfaces: DamageOpts ## Imports ...
```typescript import * as THREE from 'three'; import { Unit } from '../core/Unit'; import { DamageType } from '../config/types'; import { ECONOMY, RESPAWN } from '../config/map'; import type { Game } from '../core/Game'; export interface DamageOpts { crit?: boolean; noFloater?: boolean; } // All damage, attacks, ...
project_dota2_claude
Implement the file `src/systems/CreepWaveSystem.ts` for a Three.js / React Three Fiber 3D project (Dota2_Claude). ## File Info - Path: `src/systems/CreepWaveSystem.ts` - Language: TYPESCRIPT - Size: 64 lines, 2,190 characters - Directory: `src/systems/` ## Exports Classes: CreepWaveSystem ## Imports - `../config/map...
```typescript import { CREEP_WAVE, LANES, lanePathFor } from '../config/map'; import type { Game } from '../core/Game'; // Spawns creep waves on all three lanes for both factions and keeps // lane creeps walking their paths / fighting what they meet. export class CreepWaveSystem { private game: Game; private nextW...
project_dota2_claude
Implement the file `src/systems/EffectsSystem.ts` for a Three.js / React Three Fiber 3D project (Dota2_Claude). ## File Info - Path: `src/systems/EffectsSystem.ts` - Language: TYPESCRIPT - Size: 207 lines, 6,257 characters - Directory: `src/systems/` ## Exports Classes: EffectsSystem; Interfaces: Effect ## Imports -...
```typescript import * as THREE from 'three'; // Lightweight one-shot VFX: particle bursts, expanding rings, beams, // ground decals. Everything is pooled-ish and disposed on expiry. interface Effect { obj: THREE.Object3D; life: number; maxLife: number; update: (e: Effect, dt: number) => void; velocities?: ...
project_dota2_claude
Implement the file `src/systems/InputController.ts` for a Three.js / React Three Fiber 3D project (Dota2_Claude). ## File Info - Path: `src/systems/InputController.ts` - Language: TYPESCRIPT - Size: 348 lines, 12,126 characters - Directory: `src/systems/` ## Exports Classes: InputController ## Imports - `three` (ext...
```typescript import * as THREE from 'three'; import { Unit } from '../core/Unit'; import type { Game } from '../core/Game'; // Mouse + keyboard MOBA controls: // RMB ground = move, RMB enemy = attack, LMB = select / confirm cast, // QWER = abilities (point abilities enter targeting mode), A = attack-move, // S = s...
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
8