How a Non-Programmer Built a 487-File Unity Tool with Claude Code's 'Vibe Coding'
Products & LaunchesBreakthroughScore: 90

How a Non-Programmer Built a 487-File Unity Tool with Claude Code's 'Vibe Coding'

A graphic designer built a complex Unity map editor with 151K+ lines of C# using Claude Code's iterative 'describe → test → fix' workflow and early quality rule enforcement.

4h ago·3 min read·2 views·via reddit_claude
Share:

The Technique — 'Vibe Coding' at Scale

A graphic designer with zero programming experience built a fully functional isometric level design tool in Unity over two months using Claude Code. The project grew to 487 C# files and 151,000+ lines of code. The developer's method wasn't traditional programming—it was what they call "vibe coding": describing desired functionality in plain language, testing in Unity, and giving Claude feedback on what worked or broke.

The tool includes object placement, occupancy systems, A* pathfinding with baked routes, NPC spawning with AI behaviors, automatic doors, and a day-night cycle—all with real-time debug visualization. As a designer, they focused on making everything visual: color-coded overlays, real-time gizmos, and immediate feedback for every action.

Why It Works — Architecture Management Through Quality Rules

The key to scaling from a few files to nearly 500 was establishing 53 quality rules early in the project. Claude Code enforced these rules across the entire codebase, preventing architectural decay as complexity grew. This approach addresses the common failure mode where AI-generated code becomes unmaintainable at scale.

The developer's insight: "If I couldn't see it, I couldn't work with it." This visual-first approach created tight feedback loops where each iteration (describe → test → fix) produced tangible, testable results in Unity's editor. Claude handled the translation from visual concepts to working C# code.

How To Apply It — Your Claude Code Workflow for Complex Projects

  1. Start with quality rules immediately: Before writing substantial code, use Claude Code to establish coding standards, architecture patterns, and consistency rules. Example prompt:
Establish 10 quality rules for our Unity C# project focusing on:
- Singleton patterns for manager classes
- Event system architecture
- Editor script organization
- Naming conventions for components
  1. Implement visual-first development: For any feature, describe what you want to SEE in the editor, not just the code structure. Example:
"I need a color-coded overlay in the Unity scene view that shows which tiles are occupied. Red for blocked, green for walkable, blue for special. When I click a tile, show its coordinates and occupancy status in a floating label."
  1. Use the tight feedback loop:

    • Describe one visual/functional change
    • Let Claude generate the code
    • Test immediately in Unity
    • Report back exactly what worked/didn't
    • Repeat with incremental improvements
  2. Leverage Claude's architectural oversight: As your project grows, regularly prompt Claude to review consistency:

"Check the last 20 files added against our quality rules. Identify any patterns that are drifting from our established architecture and suggest corrections."

This approach transforms Claude Code from a code generator into a collaborative architect that maintains project integrity while you focus on functionality and user experience.

When This Works Best

  • Complex editor tools where visual feedback is critical
  • Large-scale refactoring where consistency matters
  • Learning new frameworks while building real projects
  • Prototyping complex systems without deep domain expertise

What This Means for Claude Code Users

This case study proves that Claude Code can manage architectural complexity at scale when given proper guardrails. The 53 quality rules weren't just suggestions—they were enforceable constraints that kept 487 files coherent. This is more advanced than simple script generation; it's collaborative software architecture with AI maintaining the project's structural integrity.

The "vibe coding" approach—plain language descriptions focused on visual outcomes—bypasses the need for technical specifications. You describe what you want to see and experience, and Claude handles the implementation details. This is particularly powerful for game development, data visualization, and any domain where the user experience is primarily visual.

AI Analysis

Claude Code users should shift from thinking about "generating code" to "managing architecture." Start every substantial project by having Claude establish quality rules—these act as architectural constraints that prevent codebase decay. Use prompts like `Establish quality rules for our [framework] project focusing on [key concerns]` before writing significant code. Adopt the visual-first prompting strategy. Instead of describing code structures, describe what you want to see in the UI/editor. This leverages Claude's ability to translate visual concepts into implementation. For Unity specifically, focus on Scene View elements, Inspector configurations, and real-time feedback systems. Implement the tight feedback loop as a disciplined workflow: small descriptions → immediate testing → specific feedback. This creates a rapid iteration cycle where Claude learns from concrete results rather than abstract requirements. The key is reporting back exactly what happened when you tested—what worked, what broke, what looked wrong—not just asking for fixes.
Original sourcereddit.com

Trending Now

More in Products & Launches

Browse more AI articles